]> git.wh0rd.org Git - tt-rss.git/commitdiff
prefs, revert to defaults: fixed
authorAndrew Dolgov <fox@madoka.spb.ru>
Wed, 15 Aug 2007 02:44:33 +0000 (03:44 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Wed, 15 Aug 2007 02:44:33 +0000 (03:44 +0100)
modules/pref-prefs.php

index caa5bed9409ba963b2bf49e4da2be1f7fde9f0ba..252db29d11cb99f18b02b7c6669313805402ec90 100644 (file)
 
                        $_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();