- bugfix error muting was not implemented for cache locking

This commit is contained in:
uwe.tews@googlemail.com
2011-09-23 22:27:44 +00:00
parent 50a8f805dd
commit 537285032c
2 changed files with 3 additions and 0 deletions
@@ -227,7 +227,9 @@ class Smarty_Internal_CacheResource_File extends Smarty_CacheResource {
} else {
clearstatcache();
}
Smarty::muteExpectedErrors();
$t = @filemtime($cached->lock_id);
Smarty::unmuteExpectedErrors();
return $t && (time() - $t < $smarty->locking_timeout);
}