summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom N Harris <tnharris@whoopdedo.org>2007-10-16 00:57:11 +0200
committerTom N Harris <tnharris@whoopdedo.org>2007-10-16 00:57:11 +0200
commit4570e95445222c24c0c10019da508868ca2c2418 (patch)
tree8b662ca1d169ad4b6a001e2a48578d9fec1c2e02
parent857670311b4c77ce1367d1c221c3c7ae604fbacc (diff)
downloadrpg-4570e95445222c24c0c10019da508868ca2c2418.tar.gz
rpg-4570e95445222c24c0c10019da508868ca2c2418.tar.bz2
Fix border condition on recent change update
darcs-hash:20071015225711-6942e-4d540e23e3c2ab62e378b0b9bc3cb80041c79350.gz
-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