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 fc3e4df commit ba78dbeCopy full SHA for ba78dbe
resources/lib/UnitySQL.php
@@ -233,6 +233,9 @@ public function deleteAccountDeletionRequest($uid)
233
public function getSiteVar($name): string
234
{
235
$results = $this->search(self::TABLE_SITEVARS, ["name" => $name]);
236
+ if (count($results) == 0) {
237
+ throw new UnitySQLRecordNotFound($name);
238
+ }
239
assert(count($results) == 1);
240
return $results[0]["value"];
241
}
0 commit comments