no message
This commit is contained in:
parent
211778643a
commit
c490b7dde0
@ -17,6 +17,10 @@ class Base {
|
|||||||
|
|
||||||
public function toJson($sMsg)
|
public function toJson($sMsg)
|
||||||
{
|
{
|
||||||
|
if (is_string($sMsg)) {
|
||||||
|
return $sMsg;
|
||||||
|
}
|
||||||
|
|
||||||
return json_encode($sMsg, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT);
|
return json_encode($sMsg, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user