[BUGFIX] Suppress EXIF warnings indexing images 15/27715/2
authorFelix Althaus <felix.althaus@undkonsorten.com>
Thu, 30 Jan 2014 16:42:44 +0000 (17:42 +0100)
committerMarkus Klein <klein.t3@mfc-linz.at>
Wed, 19 Feb 2014 11:32:06 +0000 (12:32 +0100)
FileContentParser used to issue a warning trying to index image
files with corrupted EXIF data. Suppress these warnings to fail
silently.

Resolves: #55286
Releases: 6.2, 6.1
Change-Id: I863601f5579ab74a0743ab684cf1d898b633edba
Reviewed-on: https://review.typo3.org/27715
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/indexed_search/Classes/FileContentParser.php

index ba9bab4..15b8a78 100644 (file)
@@ -611,7 +611,7 @@ class FileContentParser {
                case 'tif':
                        // PHP EXIF
                        if (function_exists('exif_read_data')) {
-                               $exif = exif_read_data($absFile, 'IFD0');
+                               $exif = @exif_read_data($absFile, 'IFD0');
                        } else {
                                $exif = FALSE;
                        }
@@ -732,4 +732,4 @@ class FileContentParser {
 }
 
 
-?>
\ No newline at end of file
+?>