Commit 30f52d11 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Variable default: '0' is now treaten as a value. An empty string is still...

Variable default: '0' is now treaten as a value. An empty string is still nothing >> no default given.
parent 9deb53fc
Pipeline #1972 passed with stages
in 3 minutes and 22 seconds
......@@ -413,7 +413,7 @@ class Evaluate {
}
// Not found and a default is given: take the default.
if ($foundInStore == '' && !empty($arrToken[VAR_INDEX_DEFAULT])) {
if ($foundInStore == '' && strlen($arrToken[VAR_INDEX_DEFAULT]) > 0) {
$foundInStore = TOKEN_FOUND_AS_DEFAULT;
$value = str_replace('\\:', ':', $arrToken[VAR_INDEX_DEFAULT]);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment