]> git.mxchange.org Git - friendica.git/blobdiff - mod/mood.php
More usage of dbm::is_result($r) instead of count($r):
[friendica.git] / mod / mood.php
index f804af0c00819ec0d9ed93714867e44b49396502..4ddf16e34c23195191a9e64dca158e3b31f0ebb2 100644 (file)
@@ -36,7 +36,7 @@ function mood_init(&$a) {
                        intval($parent),
                        intval($uid)
                );
-               if(count($r)) {
+               if(dbm::is_result($r)) {
                        $parent_uri = $r[0]['uri'];
                        $private    = $r[0]['private'];
                        $allow_cid  = $r[0]['allow_cid'];