aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2010-01-28 13:27:32 +0000
committerJörn Zaefferer <joern.zaefferer@gmail.com>2010-01-28 13:27:32 +0000
commitde8ed36df1582b2e76e7127e683acd0b2535f8f7 (patch)
tree4c9aa37e5231104e636afaef1484e16798f2e735 /demos
parent961238a50b5955c5c712613ea27dc0dc24887edd (diff)
downloadjquery-ui-de8ed36df1582b2e76e7127e683acd0b2535f8f7.tar.gz
jquery-ui-de8ed36df1582b2e76e7127e683acd0b2535f8f7.zip
autocomplete: back to custom json encoding (for compat with older PHP implementations, fixed the double quotes
Diffstat (limited to 'demos')
-rw-r--r--demos/autocomplete/search.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/autocomplete/search.php b/demos/autocomplete/search.php
index af490522e..4644caf5c 100644
--- a/demos/autocomplete/search.php
+++ b/demos/autocomplete/search.php
@@ -588,13 +588,13 @@ function array_to_json( $array ){
if( is_numeric($key) ){
$key = "key_$key";
}
- $key = "'".addslashes($key)."'";
+ $key = "\"".addslashes($key)."\"";
// Format the value:
if( is_array( $value )){
$value = array_to_json( $value );
} else if( !is_numeric( $value ) || is_string( $value ) ){
- $value = "'".addslashes($value)."'";
+ $value = "\"".addslashes($value)."\"";
}
// Add to staging array: