mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-22 21:34:28 +02:00
parent
b20eb681c0
commit
d3fe1e1973
@ -145,7 +145,7 @@ class JsonResponse extends Response
|
||||
*/
|
||||
public function getSuccessData()
|
||||
{
|
||||
return $this->successData;
|
||||
return (! is_array($this->successData) || empty($this->successData)) ? null : $this->successData;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -155,7 +155,7 @@ class JsonResponse extends Response
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setSuccessData(array $successData)
|
||||
public function setSuccessData(array $successData = null)
|
||||
{
|
||||
$this->successData = $successData;
|
||||
$this->status = static::STATUS_SUCCESS;
|
||||
|
Loading…
x
Reference in New Issue
Block a user