X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fcontactgroup.php;h=553c7d6cd38b54f1cc4b5657c16b6da6b2b86e4a;hb=ed0143c9f001a6a3bbe51a56f82fd2476dd627d5;hp=bf81afe079118767cd83e3917871e6cf34e510ff;hpb=cb05801a9031254f5882038de07a3ee4d5f89dd0;p=friendica.git diff --git a/mod/contactgroup.php b/mod/contactgroup.php index bf81afe079..553c7d6cd3 100644 --- a/mod/contactgroup.php +++ b/mod/contactgroup.php @@ -2,10 +2,10 @@ require_once('include/group.php'); -function contactgroup_content(&$a) { +function contactgroup_content(App &$a) { - if(! local_user()) { + if (! local_user()) { killme(); } @@ -14,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]); } @@ -24,7 +24,7 @@ function contactgroup_content(&$a) { intval($a->argv[1]), intval(local_user()) ); - if(! count($r)) { + if (! dbm::is_result($r)) { killme(); } @@ -47,4 +47,4 @@ function contactgroup_content(&$a) { } killme(); -} \ No newline at end of file +}