From e89cc5769eaf3f40cc9c70e6238820ba758cd37d Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 20 Aug 2015 10:45:58 +0800 Subject: [PATCH] Notify.php --- Notify.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Notify.php b/Notify.php index 14fc01a2..3bf30488 100644 --- a/Notify.php +++ b/Notify.php @@ -207,10 +207,9 @@ class Pman_Core_Notify extends Pman $ar = array(); // $w->fetchAll(); if (!empty($opts['list'])) { - if (empty($ar)) { - die("Nothing in Queue\n"); - } - foreach($ar as $w) { + + + while ($w->fetch()) { $o = $w->object(); -- 2.39.2