aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/functions_install.inc.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/include/functions_install.inc.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/admin/include/functions_install.inc.php b/admin/include/functions_install.inc.php
index 1a657a874..65b1a24d6 100644
--- a/admin/include/functions_install.inc.php
+++ b/admin/include/functions_install.inc.php
@@ -87,10 +87,17 @@ function available_engines()
foreach ($dblayers as $engine_name => $engine)
{
if (file_exists(sprintf($pattern, $engine_name))
+ && isset($engine['function_available'])
&& function_exists($engine['function_available']))
{
$engines[$engine_name] = $engine['engine'];
}
+ elseif (file_exists(sprintf($pattern, $engine_name))
+ && isset($engine['class_available'])
+ && class_exists($engine['class_available']))
+ {
+ $engines[$engine_name] = $engine['engine'];
+ }
}
return $engines;