Skip to content

Commit bfd203a

Browse files
committed
Merge pull request #1 from bgamrat/ignore_missing_files
- Added code to log and gracefully skip missing files
2 parents 88e6f9f + 8357e59 commit bfd203a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

classes/datatypes/ezbinaryfile/plugins/ezmultiparser.php

+6
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ function __construct()
6161

6262
function parseFile( $fileName )
6363
{
64+
if( !$fileName )
65+
{
66+
eZDebug::writeError( "eztika cannot find the file $fileName; skipping", 'eztika class eZMultiParser' );
67+
return false;
68+
}
69+
6470
$originalFileSize = filesize( $fileName );
6571
$this->writeEzTikaLog( '[START] eZMultiParser for File: '. round( $originalFileSize/1024, 2 ) .' KByte '. $fileName );
6672

0 commit comments

Comments
 (0)