mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 11:33:17 +00:00
Fix unit tests
This commit is contained in:
@@ -26,8 +26,9 @@ abstract class eventsmanager_notifyAbstract extends eventsmanager_eventAbstract
|
||||
protected function get_prefs($class, $usr_id)
|
||||
{
|
||||
$user = User_Adapter::getInstance($usr_id, $this->app);
|
||||
$pref = $user->getPrefs('notification_' . $class);
|
||||
|
||||
return $user->getPrefs('notification_' . $class);
|
||||
return null !== $pref ? $pref : 1;
|
||||
}
|
||||
|
||||
protected function shouldSendNotificationFor($usr_id)
|
||||
|
Reference in New Issue
Block a user