DataObjects/Core_group.php
[Pman.Core] / Prune.php
index d827318..5b49bd9 100644 (file)
--- a/Prune.php
+++ b/Prune.php
@@ -34,7 +34,7 @@ class Pman_Core_Prune extends Pman
         return false;
     }
     
-    function get($m="", $opts)
+    function get($m="", $opts=array())
     {
         
         // prune irrelivant stuff..
@@ -48,7 +48,8 @@ class Pman_Core_Prune extends Pman
     {
         // 40 seconds ? to delete 100K records..
        // DB_DataObject::debugLevel(1);
-        $f = DB_DataObject::Factory('reader_article');
+       /*
+        $f = DB_DataObject::Factory('Events');
         $f->query("
             DELETE FROM Events where 
                   event_when < NOW() - INTERVAL {$inM} MONTH
@@ -56,7 +57,7 @@ class Pman_Core_Prune extends Pman
                   action != 'NOTIFY'
                   LIMIT 100000
         ");
-        
+        */
         // notificication events occur alot - so we should trash them more frequently..
       /*  $f = DB_DataObject::Factory('reader_article');
         $f->query("