Changeset 29804 for trunk/include


Ignore:
Timestamp:
Sep 26, 2014, 10:15:53 PM (10 years ago)
Author:
rvelices
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_search.inc.php

    r29483 r29804  
    385385  {
    386386    $clauses = array();
    387     if ($token->scope_data['range'][0]!=='')
     387    if ($token->scope_data['range'][0]!='')
    388388      $clauses[] = $field.' >'.($token->scope_data['strict'][0]?'':'=').$token->scope_data['range'][0].' ';
    389     if ($token->scope_data['range'][1]!=='')
     389    if ($token->scope_data['range'][1]!='')
    390390      $clauses[] = $field.' <'.($token->scope_data['strict'][1]?'':'=').$token->scope_data['range'][1].' ';
    391391
     
    459459  {
    460460    $clauses = array();
    461     if ($token->scope_data[0]!=='')
     461    if ($token->scope_data[0]!='')
    462462      $clauses[] = $field.' >= \'' . $token->scope_data[0].'\'';
    463     if ($token->scope_data[1]!=='')
     463    if ($token->scope_data[1]!='')
    464464      $clauses[] = $field.' <= \'' . $token->scope_data[1].'\'';
    465465
     
    10821082      $crt_ids = $qsr->iids[$crt->idx] = array_unique( array_merge($qsr->images_iids[$crt->idx], $qsr->tag_iids[$crt->idx]) );
    10831083      $crt_qualifies = count($crt_ids)>0 || count($qsr->tag_ids[$crt->idx])>0;
    1084       $crt_ignored_terms = $crt_qualifies ? array() : array($crt->term);
     1084      $crt_ignored_terms = $crt_qualifies ? array() : array((string)$crt);
    10851085    }
    10861086    else
     
    11731173    );
    11741174
     1175  $q = trigger_change('qsearch_pre', $q);
     1176
    11751177  $scopes = array();
    11761178  $scopes[] = new QSearchScope('tag', array('tags'));
     
    12481250
    12491251  $search_results['qs']['matching_tags'] = $qsr->all_tags;
     1252  $search_results = trigger_change('qsearch_results', $search_results, $expression, $qsr);
     1253
    12501254  global $template;
    12511255
Note: See TracChangeset for help on using the changeset viewer.