]> git.mxchange.org Git - friendica.git/blobdiff - mod/contactgroup.php
Fix missing $ in front of variable names
[friendica.git] / mod / contactgroup.php
index ac6d5e6b62ec4420c863e1f1661c62fe1e478d65..07997cd1160cbd9d7e58d89895d1a61081c2dc3b 100644 (file)
@@ -8,7 +8,7 @@ use Friendica\Model\Group;
 function contactgroup_content(App $a)
 {
        if (!local_user()) {
-               killme();
+               exit();
        }
 
        $change = null;
@@ -17,7 +17,7 @@ function contactgroup_content(App $a)
                        intval($a->argv[2]),
                        intval(local_user())
                );
-               if (DBA::is_result($r)) {
+               if (DBA::isResult($r)) {
                        $change = intval($a->argv[2]);
                }
        }
@@ -27,8 +27,8 @@ function contactgroup_content(App $a)
                        intval($a->argv[1]),
                        intval(local_user())
                );
-               if (!DBA::is_result($r)) {
-                       killme();
+               if (!DBA::isResult($r)) {
+                       exit();
                }
 
                $group = $r[0];
@@ -40,7 +40,7 @@ function contactgroup_content(App $a)
                        }
                }
 
-               if (x($change)) {
+               if (!empty($change)) {
                        if (in_array($change, $preselected)) {
                                Group::removeMember($group['id'], $change);
                        } else {
@@ -49,5 +49,5 @@ function contactgroup_content(App $a)
                }
        }
 
-       killme();
+       exit();
 }