From 0a5b8254cd11632d3de33675bfcc67c216c20742 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20BENO=C3=8ET?= Date: Thu, 2 Jan 2025 15:18:26 +0100 Subject: [PATCH] fix: read default preferences --- game/scripts/lib/prefs.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/scripts/lib/prefs.inc b/game/scripts/lib/prefs.inc index ac13ebe..85e368a 100644 --- a/game/scripts/lib/prefs.inc +++ b/game/scripts/lib/prefs.inc @@ -35,7 +35,7 @@ class prefs { */ private static function getDefaults() { prefs::$prefs = array(); - $qr = dbQuery("SELECT id,version,value FROM user_preferences WHERE account=0"); + $qr = dbQuery("SELECT id,version,value FROM user_preferences WHERE account IS NULL"); if (!$qr || !pg_num_rows($qr)) { return; }