]> git.mxchange.org Git - friendica.git/blobdiff - mod/contactgroup.php
Merge remote-tracking branch 'upstream/develop' into 1612-unused-indexes
[friendica.git] / mod / contactgroup.php
index 0291350b21ed154dd5379253feb22c6d1f73ca47..553c7d6cd38b54f1cc4b5657c16b6da6b2b86e4a 100644 (file)
@@ -2,11 +2,10 @@
 
 require_once('include/group.php');
 
-if(! function_exists('contactgroup_content')) {
-function contactgroup_content(&$a) {
+function contactgroup_content(App &$a) {
 
 
-       if(! local_user()) {
+       if (! local_user()) {
                killme();
        }
 
@@ -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();
                }
 
@@ -49,4 +48,3 @@ function contactgroup_content(&$a) {
 
        killme();
 }
-}