diff options
| author | Marc Alexander <admin@m-a-styles.de> | 2018-12-19 19:57:57 +0100 |
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2018-12-19 19:57:57 +0100 |
| commit | 2a72b9b3ecf47947ddaf32564ec5810f37dd621a (patch) | |
| tree | e559c699751e6f1aee92f0ae7f5015e356e9e31c /phpBB/phpbb/notification/method/email.php | |
| parent | 5a21f7eb975666ba07d9cf25371f8c159e483d23 (diff) | |
| parent | 68489b2c135a1ec75d142851e82ee9683f8177db (diff) | |
| download | forums-2a72b9b3ecf47947ddaf32564ec5810f37dd621a.tar forums-2a72b9b3ecf47947ddaf32564ec5810f37dd621a.tar.gz forums-2a72b9b3ecf47947ddaf32564ec5810f37dd621a.tar.bz2 forums-2a72b9b3ecf47947ddaf32564ec5810f37dd621a.tar.xz forums-2a72b9b3ecf47947ddaf32564ec5810f37dd621a.zip | |
Merge pull request #5483 from marc1706/ticket/15911
[ticket/15911] Prevent errors when trying to delete from non-existent tables
Diffstat (limited to 'phpBB/phpbb/notification/method/email.php')
| -rw-r--r-- | phpBB/phpbb/notification/method/email.php | 2 |
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']); } /** |
