diff options
author | Andrew Dolgov <[email protected]> | 2005-11-17 06:34:52 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-11-17 06:34:52 +0100 |
commit | 5da169d99285701831b385650a712a9d41c38da4 (patch) | |
tree | 8d416a9edb25ee0fb146b56d4fff3e88685be21e /backend.php | |
parent | bc0e653d21e908370c9c1fbd04b71ca10061e430 (diff) |
print_radio() fixes
Diffstat (limited to 'backend.php')
-rw-r--r-- | backend.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/backend.php b/backend.php index f37c51bd8..2a488e88a 100644 --- a/backend.php +++ b/backend.php @@ -1523,8 +1523,10 @@ $type_name = db_fetch_result($result, 0, "type_name"); +// print "$pref_name : $type_name : $value<br>"; + if ($type_name == "bool") { - if ($value == 1) { + if ($value == "1") { $value = "true"; } else { $value = "false"; @@ -1546,6 +1548,8 @@ } else if ($subop == "Reset to defaults") { + db_query($link, "UPDATE ttrss_prefs SET value = def_value"); + header("Location: prefs.php"); } else { |