From: Matteo Nastasi (mop) Date: Wed, 18 May 2011 21:40:49 +0000 (+0200) Subject: inverted logic in a test X-Git-Tag: 3.5.5~6 X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=185142647b92fdc00d2a85c098d8eb8656cf4a8d;p=brisk.git inverted logic in a test --- 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); }