forked from GNUsocial/gnu-social
Email settings fix for the DB_DataObject bug for saving value 0
This commit is contained in:
parent
4e682f3d88
commit
9deff7afaf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user