From 185142647b92fdc00d2a85c098d8eb8656cf4a8d Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Wed, 18 May 2011 23:40:49 +0200 Subject: [PATCH] inverted logic in a test --- web/Obj/brisk.phh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index 4abdd86..039118e 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -1079,7 +1079,9 @@ class Room { $curtime = time(); // externalized if ($force || $this->garbage_timeout < $curtime) { - if ($force || Room::garbage_time_is_expired($curtime)) { + if (!$force && !Room::garbage_time_is_expired($curtime)) { + return ($ismod); + } // FIXME BRISK4: include for each kind of table require_once("${G_base}briskin5/Obj/briskin5.phh"); @@ -1231,7 +1233,6 @@ class Room { // externalized $this->garbage_timeout = time() + GARBAGE_TIMEOUT; Room::garbage_time_expire_set($curtime + GARBAGE_TIMEOUT); $ismod = TRUE; - } return ($ismod); } -- 2.17.1