malFormed json without sending

This commit is contained in:
Ronald Quenta
2015-04-29 17:28:37 -04:00
parent 67807bc6e2
commit 03f783f14d

View File

@@ -102,8 +102,9 @@ class Restler extends \Luracast\Restler\Restler
} else {
$r = $this->inputExecute;
}
$r = $this->requestFormat->decode($r);
if(!empty($r)){
$r = $this->requestFormat->decode($r);
}
$r = is_array($r)
? array_merge($r, array(Defaults::$fullRequestDataName => $r))
: array(Defaults::$fullRequestDataName => $r);