From 3d87cda294cdcdf631dc9466164d8c8f740e40ef Mon Sep 17 00:00:00 2001 From: Edward Date: Thu, 2 Jan 2014 15:20:49 +0800 Subject: [PATCH] NotifySend.php --- NotifySend.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NotifySend.php b/NotifySend.php index 2b8964c7..90d0dbde 100644 --- a/NotifySend.php +++ b/NotifySend.php @@ -128,7 +128,7 @@ class Pman_Core_NotifySend extends Pman $p = $w->person(); - print_r('run');exit; + if (isset($p->active) && empty($p->active)) { $ev = $this->addEvent('NOTIFY', $w, "Notification event cleared (not user not active any more)" );; @@ -170,7 +170,7 @@ class Pman_Core_NotifySend extends Pman $next_try_min = floor((time() - strtotime($last_event)) / 60) * 2; } $next_try = $next_try_min . ' MINUTES'; - + print_r('run');exit; // this may modify $p->email. (it will not update it though) $email = $this->makeEmail($o, $p, $last, $w, $force); -- 2.39.2