Prune.php
authorAlan Knowles <alan@roojs.com>
Thu, 4 Oct 2018 04:38:21 +0000 (12:38 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 4 Oct 2018 04:38:21 +0000 (12:38 +0800)
Prune.php

index 2fc3587..625e7d2 100644 (file)
--- a/Prune.php
+++ b/Prune.php
@@ -87,7 +87,7 @@ class Pman_Core_Prune extends Pman
         $f->having("mm > 2");
         $f->orderBy('mm desc') ;
         $f->limit(10000);
-                $ar = $f->fetchAll();
+        $ar = $f->fetchAll();
 
         foreach($ar as $f) {
             $q = DB_DataObject::Factory('Events');
@@ -98,9 +98,9 @@ class Pman_Core_Prune extends Pman
                   AND
                   on_table = '{$q->escape($f->on_table)}'
                   AND
-                  id > {$f->min_id}
+                  id >= {$f->min_id}
                   AND
-                  id < {$f->max_id}
+                  id <= {$f->max_id}
             ");
         }