Skip to content
Permalink
Browse files

autocomplete: use json_encode in PHP to produce valid JSON

  • Loading branch information
jzaefferer committed Jan 28, 2010
1 parent efc3848 commit 961238a50b5955c5c712613ea27dc0dc24887edd
Showing with 1 addition and 1 deletion.
  1. +1 −1 demos/autocomplete/search.php
@@ -635,6 +635,6 @@ function array_to_json( $array ){
if (count($result) > 12)
break;
}
echo array_to_json($result);
echo json_encode($result);

?>

0 comments on commit 961238a

Please sign in to comment.
You can’t perform that action at this time.