* @return array
* @throws \Exception
*/
- public static function getById(int $gid)
+ public static function getById(int $gid): array
{
$return = [];
AND NOT `contact`.`pending`
ORDER BY `contact`.`name` ASC',
$gid,
- local_user()
+ DI::userSession()->getLocalUserId()
);
if (DBA::isResult($stmt)) {