Fixed json in functions_api

This commit is contained in:
danielmaya 2018-07-04 15:57:08 +02:00
parent 0ab4ef50c5
commit b186c82a7b
1 changed files with 7 additions and 1 deletions

View File

@ -180,7 +180,13 @@ function returnData($returnType, $data, $separator = ';') {
if ($separator == ";") {
$separator = null;
}
echo json_encode ($data, $separator);
if(empty($separator)){
echo json_encode ($data);
} else {
echo json_encode ($data, $separator);
}
break;
}
}