Skip to content

Commit

Permalink
Fixes A non-numeric value encountered in PhpMath.php
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichel authored Jan 24, 2024
1 parent 2a1a0cc commit 8c3b0a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions library/Zend/Locale/Math/PhpMath.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ public static function Sub($op1, $op2, $scale = null)
if (empty($op1)) {
$op1 = 0;
}
if (empty($op2)) {
$op2 = 0;
}
$op1 = self::normalize($op1);
$op2 = self::normalize($op2);
$result = $op1 - $op2;
Expand Down

0 comments on commit 8c3b0a7

Please sign in to comment.