From 3107eb87bb763b9cd0f86139fc97dc1587fcd956 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 29 Sep 2014 11:24:59 +0200 Subject: [PATCH] Silence stat() call --- library/Icinga/Web/Form/Validator/TokenValidator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Web/Form/Validator/TokenValidator.php b/library/Icinga/Web/Form/Validator/TokenValidator.php index eb07d5438..e55369fd6 100644 --- a/library/Icinga/Web/Form/Validator/TokenValidator.php +++ b/library/Icinga/Web/Form/Validator/TokenValidator.php @@ -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;