aboutsummaryrefslogtreecommitdiffstats
path: root/mod/search.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/search.php')
-rw-r--r--mod/search.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/search.php b/mod/search.php
index 9930db288..539241268 100644
--- a/mod/search.php
+++ b/mod/search.php
@@ -192,7 +192,7 @@ function search_content(&$a,$update = 0, $load = false) {
$r = null;
if(local_user()) {
- $r = q("SELECT distinct mid, item.* from item
+ $r = q("SELECT distinct mid, item.id as item_id, item.* from item
WHERE item_restrict = 0
AND (( `item`.`allow_cid` = '' AND `item`.`allow_gid` = '' AND `item`.`deny_cid` = '' AND `item`.`deny_gid` = '' AND item_private = 0 )
OR ( `item`.`uid` = %d ))
@@ -204,7 +204,7 @@ function search_content(&$a,$update = 0, $load = false) {
);
}
if($r === null) {
- $r = q("SELECT distinct mid, item.* from item
+ $r = q("SELECT distinct mid, item.id as item_id, item.* from item
WHERE item_restrict = 0
AND ((( `item`.`allow_cid` = '' AND `item`.`allow_gid` = '' AND `item`.`deny_cid` = ''
AND `item`.`deny_gid` = '' AND item_private = 0 )
@@ -238,7 +238,7 @@ function search_content(&$a,$update = 0, $load = false) {
$items = array();
}
-
+//logger('mod_search: items ' . count($items));
// $r = q("SELECT distinct(`item`.`mid`), `item`.*, `item`.`id` AS `item_id`,
// `contact`.`name`, `contact`.`photo`, `contact`.`url`, `contact`.`alias`, `contact`.`rel`,