summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/exe/indexer.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/exe/indexer.php b/lib/exe/indexer.php
index 04229edcd..8f2205fe5 100644
--- a/lib/exe/indexer.php
+++ b/lib/exe/indexer.php
@@ -67,10 +67,10 @@ function runTrimRecentChanges() {
!@file_exists($conf['changelog'].'_tmp')) {
io_lock($conf['changelog']);
$lines = file($conf['changelog']);
- if (count($lines)<$conf['recent']) {
+ if (count($lines)<=$conf['recent']) {
// nothing to trim
io_unlock($conf['changelog']);
- return true;
+ return false;
}
io_saveFile($conf['changelog'].'_tmp', ''); // presave tmp as 2nd lock