mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 09:48:40 +00:00
Type fix. Supporting numeric values as well.
This commit is contained in:
parent
d2c35c5bce
commit
d70ef1fe9b
|
|
@ -243,7 +243,7 @@ class Response extends ResponseAbstract implements RenderableInterface
|
|||
foreach ($this->response as $key => $response) {
|
||||
if (is_object($response)) {
|
||||
$render .= $response->render();
|
||||
} elseif (is_string($response)) {
|
||||
} elseif (is_string($response) || is_numeric($response)) {
|
||||
$render .= $response;
|
||||
} elseif (is_array($response)) {
|
||||
$render .= json_encode($response);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user