]> git.mxchange.org Git - friendica.git/blobdiff - mod/tagrm.php
More usage of dbm::is_result($r) instead of count($r):
[friendica.git] / mod / tagrm.php
index 176986bc38e23cc195918b60b3f0e995e4b28fab..57024b3c3b6f2127a20074849f1c8593cbddf251 100644 (file)
@@ -19,7 +19,7 @@ function tagrm_post(&$a) {
                intval(local_user())
        );
 
-       if(! count($r))
+       if(! dbm::is_result($r))
                goaway($a->get_baseurl() . '/' . $_SESSION['photo_return']);
 
        $arr = explode(',', $r[0]['tag']);
@@ -68,7 +68,7 @@ function tagrm_content(&$a) {
                intval(local_user())
        );
 
-       if(! count($r))
+       if(! dbm::is_result($r))
                goaway($a->get_baseurl() . '/' . $_SESSION['photo_return']);
 
        $arr = explode(',', $r[0]['tag']);