From: Mikael Nordfeldth Date: Sun, 8 Mar 2015 22:32:56 +0000 (+0100) Subject: DB_DataObject won't save value 0 because it is "false" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8ae1328e71fd10bba768d75f93e91d33bb574551;p=quix0rs-gnu-social.git 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. --- 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();