From: tsia Date: Thu, 15 Mar 2018 16:26:50 +0000 (+0000) Subject: fixed "reset to defaults" in preferences X-Git-Tag: 18.8~48^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=551f3c2c859f6b4d514d2a80a72f04657ef7ceaa;p=tt-rss.git fixed "reset to defaults" in preferences --- diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index 1eb28ba2..f56048b2 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -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']]);