From d24abc3b9d68582ea0ba4e16ac1b9eff1eeaa223 Mon Sep 17 00:00:00 2001
From: Arthur Schiwon <blizzz@owncloud.com>
Date: Tue, 17 Apr 2012 19:06:45 +0200
Subject: [PATCH] check if PHP mod JSON is installed

---
 lib/util.php | 3 +++
 1 file changed, 3 insertions(+)

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;
 	}
-- 
GitLab