Changeset 27882 for trunk/index.php


Ignore:
Timestamp:
Mar 22, 2014, 2:03:45 PM (10 years ago)
Author:
rvelices
Message:

bug 3056: quick search OR operator priority taken into account
search for 'mary qwerty' will ignore 'qwerty' and return only results for 'mary' if there is no such thing as 'qwerty' in the photos (if there was 'mary' and 'qwerty', the results for both 'mary' AND 'qwerty' would be shown)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/index.php

    r26461 r27882  
    241241      $tag['URL'] = make_index_url(array('tags'=>array($tag)));
    242242      $template->append( 'tag_search_results', $tag);
     243    }
     244   
     245    if (empty($page['items']))
     246    {
     247      $template->append( 'no_search_results', $page['qsearch_details']['q']);
     248    }
     249    elseif (!empty($page['qsearch_details']['unmatched_terms']))
     250    {
     251      $template->assign( 'no_search_results', $page['qsearch_details']['unmatched_terms']);
    243252    }
    244253  }
Note: See TracChangeset for help on using the changeset viewer.