Validation fix to mathematical matrix functions
This commit is contained in:
parent
938ce8d51f
commit
c770117193
|
@ -530,6 +530,7 @@ class PHPExcel_Calculation_MathTrig {
|
||||||
|
|
||||||
$row = $maxColumn = 0;
|
$row = $maxColumn = 0;
|
||||||
foreach($matrixValues as $matrixRow) {
|
foreach($matrixValues as $matrixRow) {
|
||||||
|
if (!is_array($matrixRow)) { $matrixRow = array($matrixRow); }
|
||||||
$column = 0;
|
$column = 0;
|
||||||
foreach($matrixRow as $matrixCell) {
|
foreach($matrixRow as $matrixCell) {
|
||||||
if ((is_string($matrixCell)) || ($matrixCell === null)) {
|
if ((is_string($matrixCell)) || ($matrixCell === null)) {
|
||||||
|
@ -571,6 +572,7 @@ class PHPExcel_Calculation_MathTrig {
|
||||||
|
|
||||||
$row = $maxColumn = 0;
|
$row = $maxColumn = 0;
|
||||||
foreach($matrixValues as $matrixRow) {
|
foreach($matrixValues as $matrixRow) {
|
||||||
|
if (!is_array($matrixRow)) { $matrixRow = array($matrixRow); }
|
||||||
$column = 0;
|
$column = 0;
|
||||||
foreach($matrixRow as $matrixCell) {
|
foreach($matrixRow as $matrixCell) {
|
||||||
if ((is_string($matrixCell)) || ($matrixCell === null)) {
|
if ((is_string($matrixCell)) || ($matrixCell === null)) {
|
||||||
|
@ -607,6 +609,7 @@ class PHPExcel_Calculation_MathTrig {
|
||||||
|
|
||||||
$rowA = 0;
|
$rowA = 0;
|
||||||
foreach($matrixData1 as $matrixRow) {
|
foreach($matrixData1 as $matrixRow) {
|
||||||
|
if (!is_array($matrixRow)) { $matrixRow = array($matrixRow); }
|
||||||
$columnA = 0;
|
$columnA = 0;
|
||||||
foreach($matrixRow as $matrixCell) {
|
foreach($matrixRow as $matrixCell) {
|
||||||
if ((is_string($matrixCell)) || ($matrixCell === null)) {
|
if ((is_string($matrixCell)) || ($matrixCell === null)) {
|
||||||
|
@ -621,6 +624,7 @@ class PHPExcel_Calculation_MathTrig {
|
||||||
$matrixA = new PHPExcel_Shared_JAMA_Matrix($matrixAData);
|
$matrixA = new PHPExcel_Shared_JAMA_Matrix($matrixAData);
|
||||||
$rowB = 0;
|
$rowB = 0;
|
||||||
foreach($matrixData2 as $matrixRow) {
|
foreach($matrixData2 as $matrixRow) {
|
||||||
|
if (!is_array($matrixRow)) { $matrixRow = array($matrixRow); }
|
||||||
$columnB = 0;
|
$columnB = 0;
|
||||||
foreach($matrixRow as $matrixCell) {
|
foreach($matrixRow as $matrixCell) {
|
||||||
if ((is_string($matrixCell)) || ($matrixCell === null)) {
|
if ((is_string($matrixCell)) || ($matrixCell === null)) {
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue