We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28b57ce commit 0b86d97Copy full SHA for 0b86d97
resources/lib/UnitySQL.php
@@ -236,6 +236,9 @@ public function deleteAccountDeletionRequest($uid)
236
public function getSiteVar($name): string
237
{
238
$results = $this->search(self::TABLE_SITEVARS, ["name" => $name]);
239
+ if (count($results) == 0) {
240
+ throw new UnitySQLRecordNotFound($name);
241
+ }
242
assert(count($results) == 1);
243
return $results[0]["value"];
244
}
0 commit comments