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++) {