Fix default group not being defined correctly

This commit is contained in:
Bubka 2021-11-22 01:14:29 +01:00
parent 923ff04e3c
commit d537c98b76

View File

@ -180,7 +180,7 @@ public function getAccounts(Group $group) : Collection
*/
private function defaultGroup()
{
$id = $this->settingService->get('defaultGroup') === '-1' ? (int) $this->settingService->get('activeGroup') : (int) $this->settingService->get('defaultGroup');
$id = $this->settingService->get('defaultGroup') === -1 ? (int) $this->settingService->get('activeGroup') : (int) $this->settingService->get('defaultGroup');
return Group::find($id);
}