[GarbageCollection] Date problem (fixes #7]
This commit is contained in:
parent
df7c959f54
commit
249036c745
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue