]> git.wh0rd.org Git - tt-rss.git/commitdiff
fixed "reset to defaults" in preferences
authortsia <mail@tsia.de>
Thu, 15 Mar 2018 16:26:50 +0000 (16:26 +0000)
committertsia <mail@tsia.de>
Thu, 15 Mar 2018 16:26:50 +0000 (16:26 +0000)
classes/pref/prefs.php

index 1eb28ba200a34978d06b272a2086285a90d33c52..f56048b2f4f2a8965595c1df208e266fd0efe066 100644 (file)
@@ -146,7 +146,7 @@ class Pref_Prefs extends Handler_Protected {
 
                $_SESSION["prefs_op_result"] = "reset-to-defaults";
 
-               $sth = $this->pdo->query("DELETE FROM ttrss_user_prefs
+               $sth = $this->pdo->prepare("DELETE FROM ttrss_user_prefs
                        WHERE (profile = :profile OR (:profile IS NULL AND profile IS NULL)) 
                                AND owner_uid = :uid");
                $sth->execute([":profile" => $_SESSION['profile'], ":uid" => $_SESSION['uid']]);