From 9deff7afafb61b65ebf29771d88e1f3e29e1b520 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sat, 7 Mar 2015 21:57:43 +0100 Subject: [PATCH] Email settings fix for the DB_DataObject bug for saving value 0 --- plugins/Favorite/FavoritePlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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