mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02: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