X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fcontactgroup.php;h=5c4cd79868ef63a43a3c1c40a74a05204c7f9cf9;hb=da30538a980264da72a7c370013e60b2cb55aafa;hp=bf81afe079118767cd83e3917871e6cf34e510ff;hpb=8aa25523721303b6883e1a793f20997f8a33ec0a;p=friendica.git diff --git a/mod/contactgroup.php b/mod/contactgroup.php old mode 100755 new mode 100644 index bf81afe079..5c4cd79868 --- 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 +}