Commit 9fd6dc58 authored by Steven Wittens's avatar Steven Wittens

- #52771: drupal_to_js() improperly dealing with booleans

parent 86f4ef1e
......@@ -1187,6 +1187,7 @@ function drupal_call_js($function) {
function drupal_to_js($var) {
switch (gettype($var)) {
case 'boolean':
return $var ? 'true' : 'false'; // Lowercase necessary!
case 'integer':
case 'double':
return $var;
......
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