mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/15911] Resolve warnings when updating from 3.0.0 to latest
PHPBB3-15911
This commit is contained in:
@@ -65,7 +65,7 @@ class email extends \phpbb\notification\method\messenger_base
|
||||
*/
|
||||
public function is_available(type_interface $notification_type = null)
|
||||
{
|
||||
return parent::is_available($notification_type) && $this->config['email_enable'] && $this->user->data['user_email'];
|
||||
return parent::is_available($notification_type) && $this->config['email_enable'] && !empty($this->user->data['user_email']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user