Skip to Content.
Sympa Menu

lyceum-users - [Lyceum-users] search bug 0.34

lyceum-users AT lists.ibiblio.org

Subject: Lyceum-users mailing list

List archive

Chronological Thread  
  • From: Juan Arias <juanito_budapest AT yahoo.es>
  • To: Lyceum <lyceum-users AT lists.ibiblio.org>
  • Subject: [Lyceum-users] search bug 0.34
  • Date: Tue, 16 Jan 2007 19:38:25 +0100

Just downloaded new version, it´s looking pretty nice, good job!
I found that the search mechanism hasn´t changed much, and it was still not returning empty search results to me . . .it
 was NOT updating SQL´s WHERE clause when no results where found that matched user´s query...
¿working as intended?
If not, It can be resolved by making simple changes to lib/wp-includes/clasess.php :
  1. comment line 435
  2. Replace lines 477-481 with the following :
          if ($searchresults) {
                $searchresults = implode(',',$searchresults);
                $search = "
                    AND (`$wpdb->posts`.`ID` IN ($searchresults))";
            }
            else { // No results, shouldn´t return anything
                $search = " AND (1 = 0 ) " ;
            }
Hope that helps if it wasnt looked over during revisions...



Archive powered by MHonArc 2.6.24.

Top of Page