Fix condition on existing file

This commit is contained in:
qpautrat 2012-09-05 13:12:51 +02:00
parent a376606bd2
commit 5af0226a66

View File

@ -442,6 +442,10 @@ class PHPExcel_Reader_HTML implements PHPExcel_Reader_IReader
throw new Exception("Could not open " . $pFilename . " for reading! File does not exist.");
}
if (!is_file($pFilename)) {
throw new Exception("Could not open " . $pFilename . " for reading! The given file is not a regular file.");
}
// Create new PHPExcel
while ($objPHPExcel->getSheetCount() <= $this->_sheetIndex) {
$objPHPExcel->createSheet();