mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-10-05 01:44:18 +00:00
autocomplete: use json_encode in PHP to produce valid JSON
This commit is contained in:
parent
efc3848298
commit
961238a50b
@ -635,6 +635,6 @@ foreach ($items as $key=>$value) {
|
|||||||
if (count($result) > 12)
|
if (count($result) > 12)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
echo array_to_json($result);
|
echo json_encode($result);
|
||||||
|
|
||||||
?>
|
?>
|
Loading…
Reference in New Issue
Block a user