From: Alan Knowles Date: Thu, 4 Oct 2018 04:38:00 +0000 (+0800) Subject: Prune.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=09784f98d703a83b46eb95ec9f6bcd48596fad76 Prune.php --- diff --git a/Prune.php b/Prune.php index 7589102f..2fc3587c 100644 --- a/Prune.php +++ b/Prune.php @@ -39,8 +39,7 @@ class Pman_Core_Prune extends Pman function get($m="", $opts=array()) { - echo "start?"; - // prune irrelivant stuff.. + // prune irrelivant stuff.. @@ -88,8 +87,8 @@ class Pman_Core_Prune extends Pman $f->having("mm > 2"); $f->orderBy('mm desc') ; $f->limit(10000); - exit; - $ar = $f->fetchAll(); + $ar = $f->fetchAll(); + foreach($ar as $f) { $q = DB_DataObject::Factory('Events'); $q->query("DELETE FROM Events where