diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2012-04-17 19:06:45 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2012-04-17 19:06:45 +0200 |
commit | d24abc3b9d68582ea0ba4e16ac1b9eff1eeaa223 (patch) | |
tree | 3f3031b8d1d3ddda96548440c2756f24eabff373 | |
parent | 4dabd0fb9c4904516aec5a9cd59503f2750c4b19 (diff) | |
download | nextcloud-server-d24abc3b9d68582ea0ba4e16ac1b9eff1eeaa223.tar.gz nextcloud-server-d24abc3b9d68582ea0ba4e16ac1b9eff1eeaa223.zip |
check if PHP mod JSON is installed
-rw-r--r-- | lib/util.php | 3 |
1 files changed, 3 insertions, 0 deletions
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.<br/>','hint'=>'Please ask your server administrator to install the module.'); } + if(!function_exists('json_encode')){ + $errors[]=array('error'=>'PHP module JSON is not installed.<br/>','hint'=>'Please ask your server administrator to install the module.'); + } return $errors; } |