From: Alan Knowles Date: Thu, 20 Aug 2015 02:45:58 +0000 (+0800) Subject: Notify.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=e89cc5769eaf3f40cc9c70e6238820ba758cd37d Notify.php --- 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();