makeing egw_json_response::json_encode explicitly static to avoid deprecated warning

This commit is contained in:
Ralf Becker 2014-12-14 12:12:55 +00:00
parent e7f4bb0848
commit 46be95a854

View File

@ -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;