Silence stat() call

This commit is contained in:
Johannes Meyer 2014-09-29 11:24:59 +02:00
parent a5454e5702
commit 3107eb87bb
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ class TokenValidator extends Zend_Validate_Abstract
*/
public function isValid($value, $context = null)
{
$tokenStats = stat($this->tokenPath);
$tokenStats = @stat($this->tokenPath);
if (($tokenStats['mode'] & 4) === 4) {
$this->_error('TOKEN_FILE_PUBLIC');
return false;