From: Andrew Dolgov Date: Wed, 15 Aug 2007 02:44:33 +0000 (+0100) Subject: prefs, revert to defaults: fixed X-Git-Tag: 1.2.14~43 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=eb7ab95260d92e8e6131594f9faef09bc1044a29;p=tt-rss.git prefs, revert to defaults: fixed --- diff --git a/modules/pref-prefs.php b/modules/pref-prefs.php index caa5bed9..252db29d 100644 --- a/modules/pref-prefs.php +++ b/modules/pref-prefs.php @@ -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"]); - } + db_query($link, "DELETE FROM ttrss_user_prefs + WHERE owner_uid = ".$_SESSION["uid"]); + initialize_user_prefs($link, $_SESSION["uid"]); return prefs_js_redirect();