From: Roland Häder Date: Tue, 25 Nov 2008 20:47:47 +0000 (+0000) Subject: Fix for non-existing function 'apache_get_modules' (why is that disabled here???) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d04e72ca87bc06e7271a7f47c765a58d27857968;p=mailer.git Fix for non-existing function 'apache_get_modules' (why is that disabled here???) --- 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'))); } //////////////////////////////////////////////////