diff --git a/resources/lib/UnitySQL.php b/resources/lib/UnitySQL.php index 75a78243..85ed3afd 100644 --- a/resources/lib/UnitySQL.php +++ b/resources/lib/UnitySQL.php @@ -233,6 +233,9 @@ public function deleteAccountDeletionRequest($uid) public function getSiteVar($name): string { $results = $this->search(self::TABLE_SITEVARS, ["name" => $name]); + if (count($results) == 0) { + throw new UnitySQLRecordNotFound($name); + } assert(count($results) == 1); return $results[0]["value"]; }