<?php
/**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
* @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)) {