Skip to content

Commit

Permalink
Code tidying (#1134)
Browse files Browse the repository at this point in the history
  • Loading branch information
Quendi6 authored May 23, 2024
1 parent 3d2496d commit 3ee9470
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/system/behaviors/SettingsModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@ public function getSettingsRecord()
$query = $query->remember($this->cacheTtl, $this->getCacheKey());
}

$record = null;
try {
$record = $query->first();
} catch (QueryException $ex) {
// SQLSTATE[42S02]: Base table or view not found - migrations haven't run yet
if ($ex->getCode() === '42S02') {
$record = null;
traceLog($ex);
}
}
Expand Down

0 comments on commit 3ee9470

Please sign in to comment.