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

index d6e70a6..984a8ab 100644 (file)
@@ -204,7 +204,7 @@ class Pman_Core_Notify extends Pman
         $w->autoJoin();
         
         
-        $ar = $w->fetchAll();
+        $ar = array(); // $w->fetchAll();
         
         if (!empty($opts['list'])) {
             if (empty($ar)) {
@@ -224,7 +224,9 @@ class Pman_Core_Notify extends Pman
         $pushed = array();
         $requeue = array();
         while (true) {
-            
+            if ($w->fetch()) {
+                $ar[] = clone($w);
+            }
             
             $this->logecho("BATCH SIZE: ".  count($ar) );