]> git.mxchange.org Git - friendica.git/blobdiff - mod/notifications.php
More usage of dbm::is_result($r) instead of count($r):
[friendica.git] / mod / notifications.php
index af44097c1cb42a508c3267665d37b8fd2de8c52e..9760b34707609a2d4b3a37acc4f2d87db877f832 100644 (file)
@@ -27,7 +27,7 @@ function notifications_post(&$a) {
                        intval(local_user())
                );
 
-               if(count($r)) {
+               if(dbm::is_result($r)) {
                        $intro_id = $r[0]['id'];
                        $contact_id = $r[0]['contact-id'];
                }