From 249036c745d2f4b4592fbff51667be4ae0bba4ec Mon Sep 17 00:00:00 2001 From: Gregwar Date: Fri, 2 Dec 2011 18:24:42 +0100 Subject: [PATCH] [GarbageCollection] Date problem (fixes #7] --- Generator/CaptchaGenerator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Generator/CaptchaGenerator.php b/Generator/CaptchaGenerator.php index 3c3a879..bbb91c4 100644 --- a/Generator/CaptchaGenerator.php +++ b/Generator/CaptchaGenerator.php @@ -79,7 +79,7 @@ class CaptchaGenerator { public function garbageCollection() { $finder = new Finder(); - $criteria = sprintf('>= now - %s minutes', $this->expiration); + $criteria = sprintf('<= now - %s minutes', $this->expiration); $finder->in($this->webPath . '/' . $this->imageFolder) ->date($criteria);