]> git.mxchange.org Git - friendica.git/blobdiff - mod/contactgroup.php
More usage of dbm::is_result($r) instead of count($r):
[friendica.git] / mod / contactgroup.php
index 0291350b21ed154dd5379253feb22c6d1f73ca47..99340843d99b79de37487fe7e24d50fd21bffe16 100644 (file)
@@ -2,7 +2,6 @@
 
 require_once('include/group.php');
 
-if(! function_exists('contactgroup_content')) {
 function contactgroup_content(&$a) {
 
 
@@ -15,7 +14,7 @@ function contactgroup_content(&$a) {
                        intval($a->argv[2]),
                        intval(local_user())
                );
-               if(count($r))
+               if(dbm::is_result($r))
                        $change = intval($a->argv[2]);
        }
 
@@ -25,7 +24,7 @@ function contactgroup_content(&$a) {
                        intval($a->argv[1]),
                        intval(local_user())
                );
-               if(! count($r)) {
+               if(! dbm::is_result($r)) {
                        killme();
                }
 
@@ -48,5 +47,4 @@ function contactgroup_content(&$a) {
        }
 
        killme();
-}
-}
+}
\ No newline at end of file