fix: read default preferences

This commit is contained in:
Emmanuel BENOîT 2025-01-02 15:18:26 +01:00
parent c9642f2a68
commit 0a5b8254cd
Signed by: Emmanuel BENOîT
SSH key fingerprint: SHA256:l7PFUUF5TCDsvYeQC9OnTNz08dFY7Fvf4Hv3neIqYpg

View file

@ -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;
}