Index: trunk/xpressme_integration_kit/include/search.php
===================================================================
--- trunk/xpressme_integration_kit/include/search.php	(revision 415)
+++ trunk/xpressme_integration_kit/include/search.php	(revision 496)
@@ -25,5 +25,5 @@
 		}
 		if ($userid) {
-			$userid = xoops_uid_to_wp_uid(intval($userid),$mydirname);
+			$wp_uid = xoops_uid_to_wp_uid(intval($userid),$mydirname);
 		}
 
@@ -56,5 +56,9 @@
 			}
 			if ($userid) {
-				$where  .= " AND (post_author=".$userid.")";
+				if ($wp_uid){
+					$where  .= " AND (post_author=".$wp_uid.")";
+				} else {
+					$where  .= " AND 0 ";
+				}
 			}
 
