aboutsummaryrefslogtreecommitdiffstats
path: root/mod/search.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-01-19 17:56:36 -0800
committerFriendika <info@friendika.com>2011-01-19 17:56:36 -0800
commitb1d67c8d3ca217fb1383cad947c00fb560d51342 (patch)
tree0b2fed42b80dd1dafaea642f2a957c9d233a4ebb /mod/search.php
parente7c5f9e7de033098d9dcf58bb1cffda934dbd2c3 (diff)
downloadvolse-hubzilla-b1d67c8d3ca217fb1383cad947c00fb560d51342.tar.gz
volse-hubzilla-b1d67c8d3ca217fb1383cad947c00fb560d51342.tar.bz2
volse-hubzilla-b1d67c8d3ca217fb1383cad947c00fb560d51342.zip
network view all item types by date
Diffstat (limited to 'mod/search.php')
-rw-r--r--mod/search.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/mod/search.php b/mod/search.php
index 20113e75b..a6a4b613f 100644
--- a/mod/search.php
+++ b/mod/search.php
@@ -81,6 +81,7 @@ function search_content(&$a) {
foreach($r as $item) {
+ $total = 0;
$comment = '';
$owner_url = '';
$owner_photo = '';
@@ -91,6 +92,8 @@ function search_content(&$a) {
&& ($item['id'] != $item['parent']))
continue;
+ $total ++;
+
$profile_name = ((strlen($item['author-name'])) ? $item['author-name'] : $item['name']);
$profile_avatar = ((strlen($item['author-avatar'])) ? $item['author-avatar'] : $item['thumb']);
$profile_link = ((strlen($item['author-link'])) ? $item['author-link'] : $item['url']);
@@ -130,6 +133,13 @@ function search_content(&$a) {
}
}
+
+ if(! $r[0]['total']) {
+ notice('No results.');
+ return $o;
+ }
+
+
$o .= paginate($a);
return $o;