mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ParserFunctions
synced 2024-11-15 20:09:43 +00:00
ParserFunctions: Fix undefined variable warnings introduced in r47205
This commit is contained in:
parent
e2eb7eb6e3
commit
3c6bd5a6ec
4
Expr.php
4
Expr.php
|
@ -455,7 +455,7 @@ class ExprParser {
|
|||
$left = array_pop( $stack );
|
||||
|
||||
// Fix handling of 0.0, 0.00, etc
|
||||
if ($hasBC) {
|
||||
if ($haveBC) {
|
||||
$right = bccompWithTolerance( $right, '0' ) != 0;
|
||||
$left = bccompWithTolerance( $left, '0' ) != 0;
|
||||
}
|
||||
|
@ -467,7 +467,7 @@ class ExprParser {
|
|||
$right = array_pop( $stack );
|
||||
$left = array_pop( $stack );
|
||||
// Fix handling of 0.0, 0.00, etc
|
||||
if ($hasBC) {
|
||||
if ($haveBC) {
|
||||
$right = bccompWithTolerance( $right, '0' ) != 0;
|
||||
$left = bccompWithTolerance( $left, '0' ) != 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue