From 8ae1328e71fd10bba768d75f93e91d33bb574551 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sun, 8 Mar 2015 23:32:56 +0100 Subject: [PATCH] DB_DataObject won't save value 0 because it is "false" A bug which we fix here and there by sending the string '0' instead. We will be able to remove these hacks ("booleanintstring") when the next release of DB_DataObject comes as I patched it for them. --- plugins/OpenID/actions/openidsettings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/OpenID/actions/openidsettings.php b/plugins/OpenID/actions/openidsettings.php index 8849cf670e..0c20dac4cd 100644 --- a/plugins/OpenID/actions/openidsettings.php +++ b/plugins/OpenID/actions/openidsettings.php @@ -348,7 +348,7 @@ class OpenidsettingsAction extends SettingsAction $orig = clone($prefs); } - $prefs->hide_profile_link = $this->boolean('hide_profile_link'); + $prefs->hide_profile_link = $this->booleanintstring('hide_profile_link'); if (empty($orig)) { $prefs->insert();