mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 15:18:58 +01:00
makeing egw_json_response::json_encode explicitly static to avoid deprecated warning
This commit is contained in:
parent
e7f4bb0848
commit
46be95a854
@ -600,7 +600,7 @@ class egw_json_response extends egw_json_msg
|
|||||||
* @param mixed $var
|
* @param mixed $var
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function json_encode($var)
|
public static function json_encode($var)
|
||||||
{
|
{
|
||||||
$ret = json_encode($var);
|
$ret = json_encode($var);
|
||||||
|
|
||||||
@ -631,7 +631,7 @@ class egw_json_response extends egw_json_msg
|
|||||||
* @param string $prefix =''
|
* @param string $prefix =''
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function fix_content($var, $prefix='')
|
public static function fix_content($var, $prefix='')
|
||||||
{
|
{
|
||||||
if (json_encode($var) !== false) return $var;
|
if (json_encode($var) !== false) return $var;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user