Changeset 609 for trunk/xpressme_integration_kit/include/search.php
- Timestamp:
- May 29, 2010, 2:40:30 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/include/search.php
r607 r609 43 43 44 44 $now = date('Y-m-d H:i:s',(time() + ($time_difference * 3600))); 45 $where = "(post_status = 'publish') AND (post_date <= '".$now."') ";45 $where = "(post_status = 'publish') AND (post_date <= '".$now."') AND (post_type <> 'revision') AND (post_type <> 'nav_menu_item') "; 46 46 47 47 if ( is_array($queryarray) && $count = count($queryarray) ) { … … 65 65 66 66 while($myrow = $xoopsDB->fetchArray($result)){ 67 if ($myrow['post_type'] !=='revision' && $myrow['post_type'] !=='nav_menu_item') 67 68 switch ($myrow['post_type']) { 68 69 case 'page': … … 74 75 break; 75 76 default: 76 if ($myrow['post_type'] !=='revision'){ // for custom post type 77 $ret[$i]['link'] = $mid_url . '?'.$myrow['post_type'].'=' .$myrow['post_name']; 78 } 77 $ret[$i]['link'] = $mid_url . '?'.$myrow['post_type'].'=' .$myrow['post_name']; 79 78 } 80 79 $ret[$i]['title'] = $blog_name . $myts->htmlSpecialChars($myrow['post_title']);
Note: See TracChangeset
for help on using the changeset viewer.