diff options
author | fox <[email protected]> | 2018-03-15 18:48:41 +0000 |
---|---|---|
committer | Gogs <[email protected]> | 2018-03-15 18:48:41 +0000 |
commit | 16325f7455df34a3f807d332a23868e36895de0f (patch) | |
tree | 10cb8d01d7dabe96f51616b6450d40c6c96f3fff /classes/pref | |
parent | 9f93250fe4f7563b5091aeb0e90bb7cc44d18fed (diff) | |
parent | 551f3c2c859f6b4d514d2a80a72f04657ef7ceaa (diff) |
Merge branch 'master' of tsia/tt-rss into master
Diffstat (limited to 'classes/pref')
-rw-r--r-- | classes/pref/prefs.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index 1eb28ba20..f56048b2f 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']]); |