[BUGFIX] PHP warning when a language pack does not exist
[Packages/TYPO3.CMS.git] / t3lib / class.t3lib_div.php
index 9c85983..072dcbd 100644 (file)
@@ -2654,10 +2654,10 @@ final class t3lib_div {
                        )
                        );
 
-                       $content = file_get_contents($url, FALSE, $ctx);
+                       $content = @file_get_contents($url, FALSE, $ctx);
 
                        if ($content === FALSE && isset($report)) {
-                               $report['error']   = -1;
+                               $report['error'] = -1;
                                $report['message'] = 'Couldn\'t get URL: ' . implode(LF, $http_response_header);
                        }
                } else {
@@ -2665,10 +2665,10 @@ 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;
+                               $report['error'] = -1;
                                $report['message'] = 'Couldn\'t get URL: ' . implode(LF, $http_response_header);
                        }
                }