From 4d8764c28f0035bdfef7db25242a1a43168ec990 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 28 Jan 2016 15:44:10 +0800 Subject: [PATCH] NotifySend.php --- NotifySend.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/NotifySend.php b/NotifySend.php index cf501b4d..ace03b6b 100644 --- a/NotifySend.php +++ b/NotifySend.php @@ -253,8 +253,10 @@ class Pman_Core_NotifySend extends Pman if (!empty($opts['send-to'])) { $p->email = $opts['send-to']; } - // since some of them have spaces?!?! - $p->email = trim($p->email); + if ($p) { + // since some of them have spaces?!?! + $p->email = trim($p->email); + } require_once 'Validate.php'; if (!Validate::email($p->email, true)) { -- 2.39.2