Notify.php
authorAlan Knowles <alan@akbkhome.com>
Thu, 11 Aug 2011 03:04:59 +0000 (11:04 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 11 Aug 2011 03:04:59 +0000 (11:04 +0800)
Notify.php

index 3082b6b..92541c1 100644 (file)
@@ -83,6 +83,9 @@ class Pman_Core_Notify extends Pman
         $ar = $w->fetchAll();
         
         if (!empty($opts['list'])) {
+            if (empty($ar)) {
+                die("Nothing in Queue\n");
+            }
             foreach($ar as $w) {
                 $o = $w->object();
                 echo "$e->id : $w->person_id_email email    : ". $o->toEventString()."\n";