XPressME Integration Kit

Trac

Changeset 689


Ignore:
Timestamp:
Mar 2, 2011, 10:31:16 AM (13 years ago)
Author:
toemon
Message:

検索時、最初のリスト項目のタイトルが表示されないバグを修正 Fixed#392

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/include/search.php

    r609 r689  
    4747                        if ( is_array($queryarray) && $count = count($queryarray) ) { 
    4848                                $str_query = array(); 
    49                                 for($i=0;$i<$count;$i++){ 
    50                                         $str_query[] = "(post_title LIKE '%".$queryarray[$i]."%' OR post_content LIKE '%".$queryarray[$i]."%')"; 
     49                                for($j=0;$j<$count;$j++){ 
     50                                        $str_query[] = "(post_title LIKE '%".$queryarray[$j]."%' OR post_content LIKE '%".$queryarray[$j]."%')"; 
    5151                                } 
    5252                                $where .= " AND ".implode(" $andor ", $str_query); 
     
    6363                        $request .= " ORDER BY post_date DESC"; 
    6464                        $result = $xoopsDB->query($request,$limit,$offset); 
    65  
    6665                        while($myrow = $xoopsDB->fetchArray($result)){ 
    6766                                if ($myrow['post_type'] !=='revision' && $myrow['post_type'] !=='nav_menu_item') 
Note: See TracChangeset for help on using the changeset viewer.