diff options
-rw-r--r-- | demos/autocomplete/search.php | 4 |
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: |