Fix for non-existing function 'apache_get_modules' (why is that disabled here???)
[mailer.git] / inc / functions.php
index 69bd2e1b058d204d7c9100f9de1fe82cc07ac19a..8f753838862de646d298e1971b848a5c36c9fcef 100644 (file)
@@ -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')));
 }
 
 //////////////////////////////////////////////////