1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 22:35:55 +00:00

Merge branch 'master' of tsia/tt-rss into master

This commit is contained in:
fox
2018-03-15 18:48:41 +00:00
committed by Gogs

View File

@@ -146,7 +146,7 @@ class Pref_Prefs extends Handler_Protected {
$_SESSION["prefs_op_result"] = "reset-to-defaults"; $_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)) WHERE (profile = :profile OR (:profile IS NULL AND profile IS NULL))
AND owner_uid = :uid"); AND owner_uid = :uid");
$sth->execute([":profile" => $_SESSION['profile'], ":uid" => $_SESSION['uid']]); $sth->execute([":profile" => $_SESSION['profile'], ":uid" => $_SESSION['uid']]);