]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
DB_DataObject won't save value 0 because it is "false"
authorMikael Nordfeldth <mmn@hethane.se>
Sun, 8 Mar 2015 22:32:56 +0000 (23:32 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Sun, 8 Mar 2015 22:32:56 +0000 (23:32 +0100)
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

index 8849cf670ed540d03ddd9209b1886a0fa38afdc7..0c20dac4cdde86557ef2247ab453e02840d37423 100644 (file)
@@ -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();