projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09784f9
)
Prune.php
author
Alan Knowles
<alan@roojs.com>
Thu, 4 Oct 2018 04:38:21 +0000
(12:38 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 4 Oct 2018 04:38:21 +0000
(12:38 +0800)
Prune.php
patch
|
blob
|
history
diff --git
a/Prune.php
b/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}
");
}