From 8e38d459e5946d51c16bce3355ec5393143c8824 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Tue, 15 Dec 2009 05:22:05 +0000 Subject: #653940 follow-up by Damien Tournoud: Clean-up of error handling from first stab at test reporting fixes. --- includes/stream_wrappers.inc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'includes/stream_wrappers.inc') diff --git a/includes/stream_wrappers.inc b/includes/stream_wrappers.inc index bfbe528b4..c58c58231 100644 --- a/includes/stream_wrappers.inc +++ b/includes/stream_wrappers.inc @@ -500,12 +500,7 @@ abstract class DrupalLocalStreamWrapper implements DrupalStreamWrapperInterface public function url_stat($uri, $flags) { $this->uri = $uri; if ($flags & STREAM_URL_STAT_QUIET) { - if (file_exists($this->getLocalPath())) { - return stat($this->getLocalPath()); - } - else { - return FALSE; - } + return @stat($this->getLocalPath()); } else { return stat($this->getLocalPath()); -- cgit v1.2.3