Skip to content
Snippets Groups Projects
Commit 1f3f6c4e authored by Carsten  Rose's avatar Carsten Rose
Browse files

typeahead.php: An exception catched in typeahead.php has been assigned as...

typeahead.php: An exception catched in typeahead.php has been assigned as array element, instead of a whole array. Fixed.
parent 5739af82
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@ try {
} catch (\Exception $e) {
// $answer[API_MESSAGE] = "Generic Exception: " . $e->getMessage();
$answer[] = [API_TYPEAHEAD_KEY => 'Error', API_TYPEAHEAD_VALUE => "Error: " . $e->getMessage()];
$answer = [API_TYPEAHEAD_KEY => 'Error', API_TYPEAHEAD_VALUE => "Error: " . $e->getMessage()];
}
header("Content-Type: application/json");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment