diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-03-10 13:08:05 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-03-10 13:08:05 +0000 |
commit | 9fd6dc58182ca07e106924b0c7c1b6c51350d515 (patch) | |
tree | c1bab59d9dcdff6e5d224f544921bf65087f5994 /includes | |
parent | 86f4ef1e9976eaeec92300528d4b3e6b8dd89cf8 (diff) | |
download | brdo-9fd6dc58182ca07e106924b0c7c1b6c51350d515.tar.gz brdo-9fd6dc58182ca07e106924b0c7c1b6c51350d515.tar.bz2 |
- #52771: drupal_to_js() improperly dealing with booleans
Diffstat (limited to 'includes')
-rw-r--r-- | includes/common.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/common.inc b/includes/common.inc index dea608b81..2375a93c3 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -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; |