fix: read default preferences
This commit is contained in:
parent
c9642f2a68
commit
0a5b8254cd
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ class prefs {
|
||||||
*/
|
*/
|
||||||
private static function getDefaults() {
|
private static function getDefaults() {
|
||||||
prefs::$prefs = array();
|
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)) {
|
if (!$qr || !pg_num_rows($qr)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue