aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/notification
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2018-12-18 21:07:41 +0100
committerMarc Alexander <admin@m-a-styles.de>2018-12-18 21:07:41 +0100
commit304750a88b5a1c20cbfebbe97f71c65cd464d374 (patch)
tree61d78cfa7650aab84f351c205db457a9d7bb11f8 /phpBB/phpbb/notification
parenta2407ce978a5b65deec7be9e701be26ffb367bfd (diff)
downloadforums-304750a88b5a1c20cbfebbe97f71c65cd464d374.tar
forums-304750a88b5a1c20cbfebbe97f71c65cd464d374.tar.gz
forums-304750a88b5a1c20cbfebbe97f71c65cd464d374.tar.bz2
forums-304750a88b5a1c20cbfebbe97f71c65cd464d374.tar.xz
forums-304750a88b5a1c20cbfebbe97f71c65cd464d374.zip
[ticket/15911] Resolve warnings when updating from 3.0.0 to latest
PHPBB3-15911
Diffstat (limited to 'phpBB/phpbb/notification')
-rw-r--r--phpBB/phpbb/notification/method/email.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/notification/method/email.php b/phpBB/phpbb/notification/method/email.php
index 56dd1e9367..6376d13dc7 100644
--- a/phpBB/phpbb/notification/method/email.php
+++ b/phpBB/phpbb/notification/method/email.php
@@ -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']);
}
/**