From: Alan Knowles Date: Thu, 28 Jan 2016 07:44:10 +0000 (+0800) Subject: NotifySend.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=4d8764c28f0035bdfef7db25242a1a43168ec990 NotifySend.php --- 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)) {