fixed sending of arbitrary JSON data egw_json_request::isJSONRequest(false)

This commit is contained in:
Ralf Becker 2014-02-24 19:12:37 +00:00
parent e96ec115a0
commit f8035b8312

View File

@ -2916,6 +2916,9 @@ class mail_compose
foreach ((array)$results as $k => $_result) {$rL[$_result['id']]=$_result['label'];}; foreach ((array)$results as $k => $_result) {$rL[$_result['id']]=$_result['label'];};
return $rL; return $rL;
} }
// switch regular JSON response handling off
egw_json_request::isJSONRequest(false);
header('Content-Type: application/json; charset=utf-8'); header('Content-Type: application/json; charset=utf-8');
//error_log(__METHOD__.__LINE__); //error_log(__METHOD__.__LINE__);
echo json_encode($results); echo json_encode($results);