Skip to content

Commit

Permalink
fix Warning: Trying to access array offset on value of type bool.
Browse files Browse the repository at this point in the history
  • Loading branch information
devletech committed Sep 19, 2024
1 parent 136fb39 commit e565581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Episciences/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ public function hasLocalData(int $uid = null): bool

$result = $select->query()->fetch();

if ((int)$result['nombre'] === 0) {
if (!$result || (int)$result['nombre'] === 0) {
$this->setHasAccountData(false);
return false;
}
Expand Down

0 comments on commit e565581

Please sign in to comment.