mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 13:54:26 +02:00
parent
b20eb681c0
commit
d3fe1e1973
@ -145,7 +145,7 @@ class JsonResponse extends Response
|
|||||||
*/
|
*/
|
||||||
public function getSuccessData()
|
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
|
* @return $this
|
||||||
*/
|
*/
|
||||||
public function setSuccessData(array $successData)
|
public function setSuccessData(array $successData = null)
|
||||||
{
|
{
|
||||||
$this->successData = $successData;
|
$this->successData = $successData;
|
||||||
$this->status = static::STATUS_SUCCESS;
|
$this->status = static::STATUS_SUCCESS;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user