function search_content(&$a) {
+ if(x($_SESSION,'theme'))
+ unset($_SESSION['theme']);
+
$o = '<div id="live-search"></div>' . "\r\n";
$o .= '<h3>' . t('Search') . '</h3>';
foreach($r as $item) {
+ $total = 0;
$comment = '';
$owner_url = '';
$owner_photo = '';
&& ($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']);
}
}
+
+ if(! $r[0]['total']) {
+ notice('No results.');
+ return $o;
+ }
+
+
$o .= paginate($a);
return $o;