mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
Typo/duplicated function (references #718)
This commit is contained in:
@@ -50,19 +50,6 @@ class UsersService extends BaseService
|
|||||||
return $returnUsers;
|
return $returnUsers;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function GetUserSettinsg($userId)
|
|
||||||
{
|
|
||||||
$settingRow = $this->getDatabase()->user_settings()->where('user_id = :1 AND key = :2', $userId, $settingKey)->fetch();
|
|
||||||
if ($settingRow !== null)
|
|
||||||
{
|
|
||||||
return $settingRow->value;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public function GetUserSetting($userId, $settingKey)
|
public function GetUserSetting($userId, $settingKey)
|
||||||
{
|
{
|
||||||
$settingRow = $this->getDatabase()->user_settings()->where('user_id = :1 AND key = :2', $userId, $settingKey)->fetch();
|
$settingRow = $this->getDatabase()->user_settings()->where('user_id = :1 AND key = :2', $userId, $settingKey)->fetch();
|
||||||
|
Reference in New Issue
Block a user