Notify.php
authorAlan Knowles <alan@roojs.com>
Thu, 20 Aug 2015 02:45:58 +0000 (10:45 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 20 Aug 2015 02:45:58 +0000 (10:45 +0800)
Notify.php

index 14fc01a..3bf3048 100644 (file)
@@ -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();