diff options
Diffstat (limited to 'sourcecodes/mat_structure.php')
| -rw-r--r-- | sourcecodes/mat_structure.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sourcecodes/mat_structure.php b/sourcecodes/mat_structure.php index f4e80290..21d7e709 100644 --- a/sourcecodes/mat_structure.php +++ b/sourcecodes/mat_structure.php @@ -65,7 +65,8 @@ for($l=0;$l<=$i;$l++) for($k=0;$k<$i;$k++) { - $cell=$data_cell[$k]*$cell_val[$k]; + $cell_raw=$data_cell[$k] ?? 0; + $cell=(is_numeric($cell_raw) ? $cell_raw : 0)*$cell_val[$k]; fprintf($fp,"%s\t",$cell); } } |
