diff options
author | Friendika <info@friendika.com> | 2011-01-19 17:56:36 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-01-19 17:56:36 -0800 |
commit | b1d67c8d3ca217fb1383cad947c00fb560d51342 (patch) | |
tree | 0b2fed42b80dd1dafaea642f2a957c9d233a4ebb /mod/search.php | |
parent | e7c5f9e7de033098d9dcf58bb1cffda934dbd2c3 (diff) | |
download | volse-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.php | 10 |
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; |