X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fcontactgroup.php;h=41606ae234aa83f8cd2c3189bea3744d9b6ae83d;hb=56ee734b00aead633d5d213a6b140b75bc17ba96;hp=bf81afe079118767cd83e3917871e6cf34e510ff;hpb=04dceb955109eed93db5da1bd6c6d4cdd411a9be;p=friendica.git diff --git a/mod/contactgroup.php b/mod/contactgroup.php index bf81afe079..41606ae234 100644 --- a/mod/contactgroup.php +++ b/mod/contactgroup.php @@ -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 +}