]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Email settings fix for the DB_DataObject bug for saving value 0
authorMikael Nordfeldth <mmn@hethane.se>
Sat, 7 Mar 2015 20:57:43 +0000 (21:57 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Sat, 7 Mar 2015 20:57:43 +0000 (21:57 +0100)
plugins/Favorite/FavoritePlugin.php

index 810957c322fbb499f30ce6a2a386f1ee6aa6b821..49ba2b684515b425a93c791b49cb026f07ed47b1 100644 (file)
@@ -450,7 +450,7 @@ class FavoritePlugin extends ActivityHandlerPlugin
 
     public function onStartEmailSaveForm(Action $action, Profile $scoped)
     {
-        $emailfave = $action->boolean('email-notify_fave') ? 1 : 0;
+        $emailfave = $action->booleanintstring('email-notify_fave');
         try {
             if ($emailfave == $scoped->getPref('email', 'notify_fave')) {
                 // No need to update setting