[BUGFIX] t3lib_div::getUrl() throws a warning on nonexisting local file
authorPhilipp Gampe <philipp.gampe@typo3.org>
Fri, 20 Apr 2012 18:45:49 +0000 (20:45 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 29 Apr 2012 12:19:00 +0000 (14:19 +0200)
During #35847 the silent operator was removed from file_get_content()
which should not have happend.

Change-Id: Ifb12b5f5b20234f1a218c43d4f3882de16b7f0a0
Related: #35847
Fixes: #36380
Releases: 4.6, 4.5
Reviewed-on: http://review.typo3.org/10868
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
t3lib/class.t3lib_div.php

index 1c61173..fffafa2 100644 (file)
@@ -3161,7 +3161,7 @@ final class t3lib_div {
                                $report['lib'] = 'file';
                        }
 
-                       $content = file_get_contents($url);
+                       $content = @file_get_contents($url);
 
                        if ($content === FALSE && isset($report)) {
                                $report['error']   = -1;