]> git.mxchange.org Git - friendica.git/blobdiff - mod/notify.php
More usage of dbm::is_result($r) instead of count($r):
[friendica.git] / mod / notify.php
index 938e2ffbe35a908a79162b2a4c692a1d9a0d228c..dceb326a4bdd260faa34824d2350edfac52f8ab6 100644 (file)
@@ -47,7 +47,7 @@ function notify_content(&$a) {
        require_once('include/bbcode.php');
 
        $r = $nm->getAll(array('seen'=>0));
-       if ($r!==false && count($r) > 0) {
+       if (dbm::is_result($r) > 0) {
                foreach ($r as $it) {
                        $notif_content .= replace_macros($not_tpl,array(
                                '$item_link' => $a->get_baseurl(true).'/notify/view/'. $it['id'],