Skip to content

Commit adb700c

Browse files
committed
Merge pull request googleapis#168 from chixor/master
Replaced non existing variable $now with mktime().
2 parents a5b9d0c + 8cf9cec commit adb700c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Google/Cache/File.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function get($key, $expiration = false)
4848

4949
if ($expiration) {
5050
$mtime = filemtime($storageFile);
51-
if (($now - $mtime) >= $expiration) {
51+
if ((mktime() - $mtime) >= $expiration) {
5252
$this->delete($key);
5353
return false;
5454
}

0 commit comments

Comments
 (0)