fixed "reset to defaults" in preferences
This commit is contained in:
parent
9f93250fe4
commit
551f3c2c85
1 changed files with 1 additions and 1 deletions
|
@ -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']]);
|
||||||
|
|
Loading…
Reference in a new issue