X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fnogroup.php;h=c34120f0ff578ee43e14062252ccef3c5576d28b;hb=6a8a36f12d00f35004fbb034972ca87dd1a3c4f5;hp=2f0985c9dbba0db74ae2be74bfc4d31a110c0f6d;hpb=293436e5fd5110220c969513858dbb979f1f35d3;p=friendica.git diff --git a/mod/nogroup.php b/mod/nogroup.php index 2f0985c9db..c34120f0ff 100644 --- a/mod/nogroup.php +++ b/mod/nogroup.php @@ -28,11 +28,11 @@ function nogroup_content(&$a) { require_once('include/Contact.php'); $r = contacts_not_grouped(local_user()); - if(count($r)) { + if(dbm::is_result($r)) { $a->set_pager_total($r[0]['total']); } $r = contacts_not_grouped(local_user(),$a->pager['start'],$a->pager['itemspage']); - if(count($r)) { + if(dbm::is_result($r)) { foreach($r as $rr) { $contact_details = get_contact_details_by_url($rr['url'], local_user(), $rr);