Skip to content
Snippets Groups Projects
Commit 6367b690 authored by catch's avatar catch
Browse files

Issue #2557023 by alexpott: Strings are scalars

parent d36af973
No related branches found
No related tags found
No related merge requests found
......@@ -455,11 +455,7 @@ public function renderVar($arg) {
return NULL;
}
// Optimize for strings as it is likely they come from the escape filter.
if (is_string($arg)) {
return $arg;
}
// Optimize for scalars as it is likely they come from the escape filter.
if (is_scalar($arg)) {
return $arg;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment