Changeset 29805
- Timestamp:
- Sep 26, 2014, 10:17:15 PM (10 years ago)
- Location:
- branches/2.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.7/include/functions_search.inc.php
r29483 r29805 385 385 { 386 386 $clauses = array(); 387 if ($token->scope_data['range'][0]!= ='')387 if ($token->scope_data['range'][0]!='') 388 388 $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]!='') 390 390 $clauses[] = $field.' <'.($token->scope_data['strict'][1]?'':'=').$token->scope_data['range'][1].' '; 391 391 … … 459 459 { 460 460 $clauses = array(); 461 if ($token->scope_data[0]!= ='')461 if ($token->scope_data[0]!='') 462 462 $clauses[] = $field.' >= \'' . $token->scope_data[0].'\''; 463 if ($token->scope_data[1]!= ='')463 if ($token->scope_data[1]!='') 464 464 $clauses[] = $field.' <= \'' . $token->scope_data[1].'\''; 465 465 … … 1082 1082 $crt_ids = $qsr->iids[$crt->idx] = array_unique( array_merge($qsr->images_iids[$crt->idx], $qsr->tag_iids[$crt->idx]) ); 1083 1083 $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); 1085 1085 } 1086 1086 else … … 1173 1173 ); 1174 1174 1175 $q = trigger_change('qsearch_pre', $q); 1176 1175 1177 $scopes = array(); 1176 1178 $scopes[] = new QSearchScope('tag', array('tags')); … … 1248 1250 1249 1251 $search_results['qs']['matching_tags'] = $qsr->all_tags; 1252 $search_results = trigger_change('qsearch_results', $search_results, $expression, $qsr); 1253 1250 1254 global $template; 1251 1255 -
branches/2.7/index.php
r28587 r29805 246 246 elseif (!empty($page['qsearch_details']['unmatched_terms'])) 247 247 { 248 $template->assign( 'no_search_results', $page['qsearch_details']['unmatched_terms']);248 $template->assign( 'no_search_results', array_map($page['qsearch_details']['unmatched_terms'], 'htmlspecialchars')); 249 249 } 250 250 }
Note: See TracChangeset
for help on using the changeset viewer.