@@ -530,6 +530,7 @@ public static function MDETERM($matrixValues) {
530
530
531
531
$ row = $ maxColumn = 0 ;
532
532
foreach ($ matrixValues as $ matrixRow ) {
533
+ if (!is_array ($ matrixRow )) { $ matrixRow = array ($ matrixRow ); }
533
534
$ column = 0 ;
534
535
foreach ($ matrixRow as $ matrixCell ) {
535
536
if ((is_string ($ matrixCell )) || ($ matrixCell === null )) {
@@ -571,6 +572,7 @@ public static function MINVERSE($matrixValues) {
571
572
572
573
$ row = $ maxColumn = 0 ;
573
574
foreach ($ matrixValues as $ matrixRow ) {
575
+ if (!is_array ($ matrixRow )) { $ matrixRow = array ($ matrixRow ); }
574
576
$ column = 0 ;
575
577
foreach ($ matrixRow as $ matrixCell ) {
576
578
if ((is_string ($ matrixCell )) || ($ matrixCell === null )) {
@@ -607,6 +609,7 @@ public static function MMULT($matrixData1,$matrixData2) {
607
609
608
610
$ rowA = 0 ;
609
611
foreach ($ matrixData1 as $ matrixRow ) {
612
+ if (!is_array ($ matrixRow )) { $ matrixRow = array ($ matrixRow ); }
610
613
$ columnA = 0 ;
611
614
foreach ($ matrixRow as $ matrixCell ) {
612
615
if ((is_string ($ matrixCell )) || ($ matrixCell === null )) {
@@ -621,6 +624,7 @@ public static function MMULT($matrixData1,$matrixData2) {
621
624
$ matrixA = new PHPExcel_Shared_JAMA_Matrix ($ matrixAData );
622
625
$ rowB = 0 ;
623
626
foreach ($ matrixData2 as $ matrixRow ) {
627
+ if (!is_array ($ matrixRow )) { $ matrixRow = array ($ matrixRow ); }
624
628
$ columnB = 0 ;
625
629
foreach ($ matrixRow as $ matrixCell ) {
626
630
if ((is_string ($ matrixCell )) || ($ matrixCell === null )) {
0 commit comments