summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Wisselink <s.wisselink@iwink.nl>2024-05-30 13:11:33 +0200
committerSimon Wisselink <s.wisselink@iwink.nl>2024-05-30 13:11:33 +0200
commit4aa1273a8003941b85e454b9267e13b812932182 (patch)
tree45ce66f44c9495e272643f234126c5176fe9f6e5 /src
parent2a87c65994811a1eb26a59f58ecbf663445e8739 (diff)
parent3232277bc526602801225ac4fbc7aae3867f582e (diff)
downloadsmarty-4aa1273a8003941b85e454b9267e13b812932182.tar.gz
smarty-4aa1273a8003941b85e454b9267e13b812932182.tar.bz2
smarty-4aa1273a8003941b85e454b9267e13b812932182.zip
Merge branch 'support/5'
Diffstat (limited to 'src')
-rw-r--r--src/Data.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Data.php b/src/Data.php
index f8abe0f6..6ae823d8 100644
--- a/src/Data.php
+++ b/src/Data.php
@@ -290,7 +290,7 @@ class Data
* @return bool
*/
public function hasVariable($varName): bool {
- return !($this->getVariable($varName) instanceof UndefinedVariable);
+ return !($this->getVariable($varName, true, false) instanceof UndefinedVariable);
}
/**