diff options
author | Andrew Dolgov <[email protected]> | 2017-12-03 09:35:59 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-12-03 09:35:59 +0300 |
commit | 187abfe732fe62cf4b30847665dab30903d00d99 (patch) | |
tree | 1a0b4084e8b6a38bd6cf937368819b737747e995 /classes/pref/prefs.php | |
parent | 8ff3cbb32e8fcae1e8ce7d83e5718f43afaacdb8 (diff) |
main classes: remove sql_bool_to_bool() kludge
Diffstat (limited to 'classes/pref/prefs.php')
-rw-r--r-- | classes/pref/prefs.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index ab39b1e28..ff778cbce 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -207,7 +207,7 @@ class Pref_Prefs extends Handler_Protected { $email = htmlspecialchars($row["email"]); $full_name = htmlspecialchars($row["full_name"]); - $otp_enabled = sql_bool_to_bool($row["otp_enabled"]); + $otp_enabled = $row["otp_enabled"]; print "<tr><td width=\"40%\">".__('Full name')."</td>"; print "<td class=\"prefValue\"><input dojoType=\"dijit.form.ValidationTextBox\" name=\"full_name\" required=\"1\" @@ -864,7 +864,7 @@ class Pref_Prefs extends Handler_Protected { $base32 = new Base32(); $login = $row["login"]; - $otp_enabled = sql_bool_to_bool($row["otp_enabled"]); + $otp_enabled = $row["otp_enabled"]; if (!$otp_enabled) { $secret = $base32->encode(sha1($row["salt"])); |