]> source.dussan.org Git - nextcloud-server.git/commitdiff
check if PHP mod JSON is installed
authorArthur Schiwon <blizzz@owncloud.com>
Tue, 17 Apr 2012 17:06:45 +0000 (19:06 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Tue, 17 Apr 2012 17:06:45 +0000 (19:06 +0200)
lib/util.php

index 02ac2e505fa330a3966947ffe185d4a03c84ed6c..55cef99c2e2113277cf6eaa69b962e6d609bf94c 100644 (file)
@@ -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;
        }