Adjust autoloader
This commit is contained in:
parent
93ddd7baec
commit
35b21c31a5
@ -52,8 +52,9 @@ function query_autoload($class)
|
||||
$class = strtolower($class);
|
||||
|
||||
// Load Firebird separately
|
||||
if ($class === 'firebird')
|
||||
if (function_exists('fbird_connect') && $class === 'firebird')
|
||||
{
|
||||
array_map('do_include', glob(QDRIVER_PATH.'/firebird/*.php'));
|
||||
return;
|
||||
}
|
||||
|
||||
@ -77,12 +78,6 @@ function query_autoload($class)
|
||||
// Set up autoloader
|
||||
spl_autoload_register('query_autoload');
|
||||
|
||||
// Load Firebird driver, if applicable
|
||||
if (function_exists('fbird_connect'))
|
||||
{
|
||||
array_map('do_include', glob(QDRIVER_PATH.'/firebird/*.php'));
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user