1
0
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:
Marc Alexander
2018-12-18 21:07:41 +01:00
parent a2407ce978
commit 304750a88b
2 changed files with 6 additions and 3 deletions

View File

@@ -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']);
}
/**