summaryrefslogtreecommitdiff
path: root/includes/stream_wrappers.inc
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-12-15 05:22:05 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-12-15 05:22:05 +0000
commit8e38d459e5946d51c16bce3355ec5393143c8824 (patch)
treefc9e1dbc6f9751e9d61bbda927b7246ef87f339f /includes/stream_wrappers.inc
parenteb807e70e030a19e4b72984a955d0412a9f9b463 (diff)
downloadbrdo-8e38d459e5946d51c16bce3355ec5393143c8824.tar.gz
brdo-8e38d459e5946d51c16bce3355ec5393143c8824.tar.bz2
#653940 follow-up by Damien Tournoud: Clean-up of error handling from first stab at test reporting fixes.
Diffstat (limited to 'includes/stream_wrappers.inc')
-rw-r--r--includes/stream_wrappers.inc7
1 files changed, 1 insertions, 6 deletions
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());