mirror of
https://github.com/Combodo/iTop.git
synced 2026-03-06 09:34:13 +01:00
N°8910 - Upgrade Symfony packages (#811)
This commit is contained in:
@@ -157,6 +157,10 @@ abstract class AbstractController implements ServiceSubscriberInterface
|
||||
return new JsonResponse($json, $status, $headers, true);
|
||||
}
|
||||
|
||||
if (null === $data) {
|
||||
return new JsonResponse('null', $status, $headers, true);
|
||||
}
|
||||
|
||||
return new JsonResponse($data, $status, $headers);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user