]> git.mxchange.org Git - friendica.git/blobdiff - mod/contactgroup.php
Catch HTTPExceptions in App::runFrontend()
[friendica.git] / mod / contactgroup.php
index 388725c0064cfe87848c2f140210b300e4675a5d..753d3a07332139f4690deb35d4eb8785e2a6e832 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 use Friendica\App;
-use Friendica\Database\DBM;
+use Friendica\Database\DBA;
 use Friendica\Model\Contact;
 use Friendica\Model\Group;
 
@@ -17,7 +17,7 @@ function contactgroup_content(App $a)
                        intval($a->argv[2]),
                        intval(local_user())
                );
-               if (DBM::is_result($r)) {
+               if (DBA::isResult($r)) {
                        $change = intval($a->argv[2]);
                }
        }
@@ -27,7 +27,7 @@ function contactgroup_content(App $a)
                        intval($a->argv[1]),
                        intval(local_user())
                );
-               if (!DBM::is_result($r)) {
+               if (!DBA::isResult($r)) {
                        killme();
                }
 
@@ -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 {