]> git.mxchange.org Git - friendica.git/blobdiff - mod/ignored.php
More usage of dbm::is_result($r) instead of count($r):
[friendica.git] / mod / ignored.php
index 8a681a11543d053ca3ffeeaa0b7d2809164e6ce7..ba55c55e368925648bad537fec37fe8ede477a8e 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-if(! function_exists('ignored_init')) {
+
 function ignored_init(&$a) {
 
        $ignored = 0;
@@ -16,7 +16,7 @@ function ignored_init(&$a) {
                intval(local_user()),
                intval($message_id)
        );
-       if(! count($r))
+       if(! dbm::is_result($r))
                killme();
 
        if(! intval($r[0]['ignored']))
@@ -43,4 +43,3 @@ function ignored_init(&$a) {
        echo json_encode($ignored);
        killme();
 }
-}