minor fixes to suggested chatrooms

This commit is contained in:
friendica
2014-02-27 17:10:26 -08:00
parent 642da17b86
commit d2bc7c606a
2 changed files with 2 additions and 4 deletions

View File

@@ -613,9 +613,7 @@ function widget_suggestedchats($arr) {
$h = get_observer_hash();
if(! $h)
return;
$r = q("select *, count(xchat_url) as total from xchat group by xchat_url order by total desc, xchat_desc",
dbesc($h)
);
$r = q("select *, count(xchat_url) as total from xchat group by xchat_url order by total desc, xchat_desc");
for($x = 0; $x < count($r); $x ++)
$r[$x]['xchat_url'] = zid($r[$x]['xchat_url']);