Merge branch 'master' of http://private.akbkhome.com/Pman.Core
authorAlan Knowles <alan@akkbhome.com>
Sun, 10 Apr 2011 06:45:11 +0000 (14:45 +0800)
committerAlan Knowles <alan@akkbhome.com>
Sun, 10 Apr 2011 06:45:11 +0000 (14:45 +0800)
Cli.php
Notify.php

diff --git a/Cli.php b/Cli.php
index 7cc7f7b..a0fe264 100644 (file)
--- a/Cli.php
+++ b/Cli.php
@@ -40,7 +40,14 @@ class Pman_Core_Cli
      
     Runs the javascript compiler - merging all the JS files so the load faster.
     Note: cfg option Pman_Builder['jspacker'] must be set to location of jstoolkit code 
+
+================================    
+
+    $cli Core/Notify
     
+    Runs the notification tool - should be run every minute ideally.
+    Sends out emails to anyone in the notification list.
+        
 ";
 
 
index 7a41894..6085de8 100644 (file)
@@ -40,7 +40,7 @@ class Pman_Core_Notify extends Pman
         
         $w = DB_DataObject::factory($this->table);
         $w->whereAdd('act_when > sent'); // eg.. sent is not valid..
-        $w->whereAdd('act_when > NOW()'); // eg.. not if future..
+        $w->whereAdd('act_when < NOW()'); // eg.. not if future..
 
         $w->orderBy('act_when ASC'); // oldest first.
         $w->limit(1000); // we can run 1000 ...