X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FContact%2FGroup.php;h=f18e344d03fda4e59402cf0225fc68672862f929;hb=f609386ca11d805838f5526261068a69b489eab0;hp=2b7096a9a88a6ab073d59e070431f2d3b3bd913a;hpb=e56a53647bd5469551bf4f9ef2df50a5dd16b943;p=friendica.git diff --git a/src/Model/Contact/Group.php b/src/Model/Contact/Group.php index 2b7096a9a8..f18e344d03 100644 --- a/src/Model/Contact/Group.php +++ b/src/Model/Contact/Group.php @@ -36,7 +36,7 @@ class Group * @return array * @throws \Exception */ - public static function getById(int $gid) + public static function getById(int $gid): array { $return = []; @@ -53,7 +53,7 @@ class Group AND NOT `contact`.`pending` ORDER BY `contact`.`name` ASC', $gid, - local_user() + DI::userSession()->getLocalUserId() ); if (DBA::isResult($stmt)) {