Skip to content

Commit 3914c15

Browse files
committed
Fix error
1 parent 0e263f3 commit 3914c15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/PHPExcel/IOFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public static function createWriter(PHPExcel $phpExcel, $writerType = '')
134134
// Include class
135135
foreach (self::$searchLocations as $searchLocation) {
136136
if ($searchLocation['type'] == $searchType) {
137-
$className = str_replace('{0}', $writerType, $searchLocation['class']);
137+
$className = str_replace(['{0}', '[0]'], $writerType, $searchLocation['class']);
138138

139139
$instance = new $className($phpExcel);
140140
if ($instance !== null) {

0 commit comments

Comments
 (0)