X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fcontactgroup.php;h=07997cd1160cbd9d7e58d89895d1a61081c2dc3b;hb=e7be87df93895de47414a5a788cd6487adb98a29;hp=388725c0064cfe87848c2f140210b300e4675a5d;hpb=29f7ebe307c22b275466390937b82ccb3820fb1c;p=friendica.git diff --git a/mod/contactgroup.php b/mod/contactgroup.php index 388725c006..07997cd116 100644 --- a/mod/contactgroup.php +++ b/mod/contactgroup.php @@ -1,14 +1,14 @@ argv[2]), intval(local_user()) ); - if (DBM::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 (!DBM::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(); }