db-prefs: add fix for USER_TIMEZONE default value

This commit is contained in:
Andrew Dolgov 2010-11-12 18:51:46 +03:00
parent 6b32516bd0
commit ec39f07a84
1 changed files with 4 additions and 0 deletions

View File

@ -121,6 +121,10 @@
$value = 30;
}
if ($key == 'USER_TIMEZONE' && $value == '') {
$value = 'UTC';
}
db_query($link, "UPDATE ttrss_user_prefs SET
value = '$value' WHERE pref_name = '$key'
$profile_qpart