From d04e72ca87bc06e7271a7f47c765a58d27857968 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 25 Nov 2008 20:47:47 +0000 Subject: [PATCH] Fix for non-existing function 'apache_get_modules' (why is that disabled here???) --- inc/databases.php | 2 +- inc/functions.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/databases.php b/inc/databases.php index fbdd39899f..255830bf1c 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -114,7 +114,7 @@ define('USAGE_BASE', "usage"); define('SERVER_URL', "http://www.mxchange.org"); // This current patch level -define('CURR_SVN_REVISION', "558"); +define('CURR_SVN_REVISION', "559"); // Take a prime number which is long (if you know a longer one please try it out!) define('_PRIME', 591623); diff --git a/inc/functions.php b/inc/functions.php index 69bd2e1b05..8f75383886 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -2807,7 +2807,7 @@ function DESTROY_ADMIN_SESSION () { // Checks if a given apache module is loaded function IF_APACHE_MODULE_LOADED ($apacheModule) { // Check it and return result - return (in_array($apacheModule, apache_get_modules())); + return (((function_exists('apache_get_modules')) && (in_array($apacheModule, apache_get_modules()))) || (!function_exists('apache_get_modules'))); } ////////////////////////////////////////////////// -- 2.39.5