]> git.mxchange.org Git - friendica.git/blobdiff - mod/contactgroup.php
Cleanup /format pre-move
[friendica.git] / mod / contactgroup.php
index bf81afe079118767cd83e3917871e6cf34e510ff..41606ae234aa83f8cd2c3189bea3744d9b6ae83d 100644 (file)
@@ -2,10 +2,8 @@
 
 require_once('include/group.php');
 
-function contactgroup_content(&$a) {
-
-
-       if(! local_user()) {
+function contactgroup_content(App $a) {
+       if (! local_user()) {
                killme();
        }
 
@@ -14,7 +12,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]);
        }
 
@@ -24,7 +22,7 @@ function contactgroup_content(&$a) {
                        intval($a->argv[1]),
                        intval(local_user())
                );
-               if(! count($r)) {
+               if (! dbm::is_result($r)) {
                        killme();
                }
 
@@ -47,4 +45,4 @@ function contactgroup_content(&$a) {
        }
 
        killme();
-}
\ No newline at end of file
+}