diff options
author | Andrew Dolgov <[email protected]> | 2021-03-13 11:22:06 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-03-13 11:22:06 +0300 |
commit | 38ab3ef11cc61889dfd617ea828f9d6538ca6d6d (patch) | |
tree | dc6f4975a5e069c370e9388878e99aa7f3404f98 /classes/pref | |
parent | 4ddcd54e8d4a11b19de43e31c81ab03d26ef105c (diff) | |
parent | 06ebb81eb838e243aec90ccfbcf4e4bd8b247235 (diff) |
Merge branch 'master' of git.tt-rss.org:fox/tt-rss
Diffstat (limited to 'classes/pref')
-rw-r--r-- | classes/pref/users.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/pref/users.php b/classes/pref/users.php index 2e3dc4b67..76a879efd 100644 --- a/classes/pref/users.php +++ b/classes/pref/users.php @@ -117,7 +117,7 @@ class Pref_Users extends Handler_Administrative { $user->login = mb_strtolower($login); $user->access_level = (int) clean($_REQUEST["access_level"]); $user->email = clean($_REQUEST["email"]); - $user->otp_enabled = checkbox_to_sql_bool($_REQUEST["otp_enabled"]); + $user->otp_enabled = checkbox_to_sql_bool($_REQUEST["otp_enabled"] ?? ""); // force new OTP secret when next enabled if (Config::get_schema_version() >= 143 && !$user->otp_enabled) { |