From: Arthur Schiwon Date: Tue, 17 Apr 2012 17:06:45 +0000 (+0200) Subject: check if PHP mod JSON is installed X-Git-Tag: v4.0.0beta~262 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d24abc3b9d68582ea0ba4e16ac1b9eff1eeaa223;p=nextcloud-server.git check if PHP mod JSON is installed --- diff --git a/lib/util.php b/lib/util.php index 02ac2e505fa..55cef99c2e2 100644 --- a/lib/util.php +++ b/lib/util.php @@ -237,6 +237,9 @@ class OC_Util { if(!function_exists('ctype_digit')){ $errors[]=array('error'=>'PHP module ctype is not installed.
','hint'=>'Please ask your server administrator to install the module.'); } + if(!function_exists('json_encode')){ + $errors[]=array('error'=>'PHP module JSON is not installed.
','hint'=>'Please ask your server administrator to install the module.'); + } return $errors; }