prefs, revert to defaults: fixed
This commit is contained in:
parent
734def2001
commit
eb7ab95260
|
@ -128,16 +128,9 @@
|
|||
|
||||
$_SESSION["prefs_op_result"] = "reset-to-defaults";
|
||||
|
||||
if (DB_TYPE == "pgsql") {
|
||||
db_query($link,"UPDATE ttrss_user_prefs
|
||||
SET value = ttrss_prefs.def_value
|
||||
WHERE owner_uid = '".$_SESSION["uid"]."' AND
|
||||
ttrss_prefs.pref_name = ttrss_user_prefs.pref_name");
|
||||
} else {
|
||||
db_query($link, "DELETE FROM ttrss_user_prefs
|
||||
WHERE owner_uid = ".$_SESSION["uid"]);
|
||||
initialize_user_prefs($link, $_SESSION["uid"]);
|
||||
}
|
||||
|
||||
return prefs_js_redirect();
|
||||
|
||||
|
|
Loading…
Reference in New Issue