Allow passing falsey values to if="" attribute of XML queries

This commit is contained in:
Kijin Sung 2024-03-19 22:52:39 +09:00
parent 7c8e76b727
commit dd4d04f409
2 changed files with 9 additions and 9 deletions

View file

@ -34,7 +34,7 @@ class VariableBase
$params = array();
// Process the variable or default value.
if ($this->ifvar && !isset($args[$this->ifvar]))
if ($this->ifvar && empty($args[$this->ifvar]))
{
return [$where, $params];
}