aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-10-10 21:31:40 -0700
committerfriendica <info@friendica.com>2013-10-10 21:31:40 -0700
commit89fc319c900873be58fa677707518646f6c79eec (patch)
tree6d174d12a0de707ed8f875801a8dbc0c35f70d3f
parentf07baa91998785086227b2834724a888c7e7c229 (diff)
downloadvolse-hubzilla-89fc319c900873be58fa677707518646f6c79eec.tar.gz
volse-hubzilla-89fc319c900873be58fa677707518646f6c79eec.tar.bz2
volse-hubzilla-89fc319c900873be58fa677707518646f6c79eec.zip
fix search to display more than one item
-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`,