From 993a232b65a878e7320c52a6a4ca9bc567a4bd10 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 24 Sep 2011 22:29:23 +0000 Subject: [PATCH] added JSON --- lam/lib/checkEnvironment.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lam/lib/checkEnvironment.inc b/lam/lib/checkEnvironment.inc index f7be095d..614a15e5 100644 --- a/lam/lib/checkEnvironment.inc +++ b/lam/lib/checkEnvironment.inc @@ -3,7 +3,7 @@ $Id$ This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) - Copyright (C) 2010 Roland Gruber + Copyright (C) 2010 - 2011 Roland Gruber This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -75,6 +75,10 @@ if (! function_exists('utf8_decode')) { if (! function_exists('getimagesize')) { $criticalErrors[] = array("ERROR", "Your PHP has no GD support!", "Please install the GD extension for PHP."); } +// check if PHP has JSON support +if (! function_exists('json_encode')) { + $criticalErrors[] = array("ERROR", "Your PHP has no JSON support!", "Please install the JSON extension for PHP."); +} // check file permissions $writableDirs = array('sess', 'tmp'); for ($i = 0; $i < sizeof($writableDirs); $i++) {