summaryrefslogtreecommitdiffstats
path: root/lib/init.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/init.php')
-rw-r--r--lib/init.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/init.php b/lib/init.php
index 8b8248f0..672f945e 100644
--- a/lib/init.php
+++ b/lib/init.php
@@ -53,7 +53,10 @@ else {
// Verify that a few important but commonly disabled PHP functions exist and
// that we're on a usable version
-if (!function_exists('hash') || !function_exists('inet_pton') || (floatval(phpversion()) < 5.3) || !class_exists('PDO')) {
+if (!function_exists('json_encode') ||
+ !function_exists('hash') ||
+ (floatval(phpversion()) < 5.3) ||
+ !class_exists('PDO')) {
$link = $path . '/test.php';
}