Commit 6367b690 authored by catch's avatar catch

Issue #2557023 by alexpott: Strings are scalars

parent d36af973
...@@ -455,11 +455,7 @@ public function renderVar($arg) { ...@@ -455,11 +455,7 @@ public function renderVar($arg) {
return NULL; return NULL;
} }
// Optimize for strings as it is likely they come from the escape filter. // Optimize for scalars as it is likely they come from the escape filter.
if (is_string($arg)) {
return $arg;
}
if (is_scalar($arg)) { if (is_scalar($arg)) {
return $arg; return $arg;
} }
......
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