Notify.php
authorAlan Knowles <alan@roojs.com>
Mon, 29 Apr 2013 02:45:10 +0000 (10:45 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 29 Apr 2013 02:45:10 +0000 (10:45 +0800)
Notify.php

index 9ead6e2..1f20ebf 100644 (file)
@@ -113,8 +113,13 @@ class Pman_Core_Notify extends Pman
             print_r($opts);
         }
         $this->opts = $opts;
-        $this->max_pool_size = $opts['poolsize'];
+        if (!empty($opts['poolsize'])) {
+            $this->max_pool_size = $opts['poolsize'];
+        }
         
+        if (empty($opts['limit'])) {
+            $opts['limit'] = '1000';
+        }
         //date_default_timezone_set('UTC');
        // phpinfo();exit;
         $showold = !empty($opts['old']);