File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
app/code/Magento/AdminNotification/Model/System/Message/Media/Synchronization Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ class Error extends \Magento\AdminNotification\Model\System\Message\Media\Abstra
27
27
protected function _shouldBeDisplayed ()
28
28
{
29
29
$ data = $ this ->_syncFlag ->getFlagData ();
30
- return isset ($ data ['has_errors ' ]) && true == $ data [ ' has_errors ' ] ;
30
+ return ! empty ($ data ['has_errors ' ]);
31
31
}
32
32
33
33
/**
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ protected function _shouldBeDisplayed()
27
27
{
28
28
$ state = $ this ->_syncFlag ->getState ();
29
29
$ data = $ this ->_syncFlag ->getFlagData ();
30
- $ hasErrors = isset ($ data ['has_errors ' ]) && true == $ data [ ' has_errors ' ] ? true : false ;
31
- return false == $ hasErrors && \Magento \MediaStorage \Model \File \Storage \Flag::STATE_FINISHED == $ state ;
30
+ $ hasErrors = ! empty ($ data ['has_errors ' ]);
31
+ return ! $ hasErrors && \Magento \MediaStorage \Model \File \Storage \Flag::STATE_FINISHED == $ state ;
32
32
}
33
33
34
34
/**
You can’t perform that action at this time.
0 commit comments