Email settings fix for the DB_DataObject bug for saving value 0

This commit is contained in:
Mikael Nordfeldth 2015-03-07 21:57:43 +01:00
parent 4e682f3d88
commit 9deff7afaf

View 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