From: Mikael Nordfeldth Date: Sat, 7 Mar 2015 20:57:43 +0000 (+0100) Subject: Email settings fix for the DB_DataObject bug for saving value 0 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9deff7afafb61b65ebf29771d88e1f3e29e1b520;p=quix0rs-gnu-social.git Email settings fix for the DB_DataObject bug for saving value 0 --- diff --git a/plugins/Favorite/FavoritePlugin.php b/plugins/Favorite/FavoritePlugin.php index 810957c322..49ba2b6845 100644 --- a/plugins/Favorite/FavoritePlugin.php +++ b/plugins/Favorite/FavoritePlugin.php @@ -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