We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b53bf7 commit afc61edCopy full SHA for afc61ed
src/Handlers/DatabaseHandler.php
@@ -122,7 +122,14 @@ private function hydrate()
122
123
$this->table = config('Settings')->database['table'] ?? 'settings';
124
125
- $rawValues = db_connect()->table($this->table)->get()->getResultObject();
+ $rawValues = db_connect()->table($this->table)->get();
126
+
127
+ if (is_bool($rawValues))
128
+ {
129
+ throw new \RuntimeException(db_connect()->error()['message'] ?? 'Error reading from database.');
130
+ }
131
132
+ $rawValues = $rawValues->getResultObject();
133
134
foreach ($rawValues as $row)
135
{
0 commit comments