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)
|
public function onStartEmailSaveForm(Action $action, Profile $scoped)
|
||||||
{
|
{
|
||||||
$emailfave = $action->boolean('email-notify_fave') ? 1 : 0;
|
$emailfave = $action->booleanintstring('email-notify_fave');
|
||||||
try {
|
try {
|
||||||
if ($emailfave == $scoped->getPref('email', 'notify_fave')) {
|
if ($emailfave == $scoped->getPref('email', 'notify_fave')) {
|
||||||
// No need to update setting
|
// No need to update setting
|
||||||
|
|
Loading…
Reference in New Issue
Block a user