Index: trunk/xpressme_integration_kit/include/search.php
===================================================================
--- trunk/xpressme_integration_kit/include/search.php	(revision 607)
+++ trunk/xpressme_integration_kit/include/search.php	(revision 609)
@@ -43,5 +43,5 @@
 			
 			$now = date('Y-m-d H:i:s',(time() + ($time_difference * 3600)));
-			$where = "(post_status = 'publish') AND (post_date <= '".$now."')";
+			$where = "(post_status = 'publish') AND (post_date <= '".$now."') AND (post_type <> 'revision') AND (post_type <> 'nav_menu_item') ";
 
 			if ( is_array($queryarray) && $count = count($queryarray) ) {
@@ -65,4 +65,5 @@
 
 			while($myrow = $xoopsDB->fetchArray($result)){
+				if ($myrow['post_type'] !=='revision' && $myrow['post_type'] !=='nav_menu_item')
 				switch ($myrow['post_type']) {
 				case 'page':
@@ -74,7 +75,5 @@
 					break;
 				default:
-					if ($myrow['post_type'] !=='revision'){	// for custom post type
-						$ret[$i]['link'] = $mid_url . '?'.$myrow['post_type'].'=' .$myrow['post_name'];
-					}
+					$ret[$i]['link'] = $mid_url . '?'.$myrow['post_type'].'=' .$myrow['post_name'];
 				}
 				$ret[$i]['title'] = $blog_name . $myts->htmlSpecialChars($myrow['post_title']);
