sql issue on admin page

This commit is contained in:
friendica 2012-06-19 16:32:43 -07:00
parent 574f074dc0
commit 49507a5149

View file

@ -7,7 +7,7 @@ function admin_content(&$a) {
return; return;
} }
$r = q("SELECT COUNT (*) FROM `flag` as `ftotal` WHERE 1"); $r = q("SELECT COUNT(*) FROM `flag` as `ftotal` WHERE 1");
if(count($r)) if(count($r))
$a->set_pager_total($r[0]['ftotal']); $a->set_pager_total($r[0]['ftotal']);