Slightly improve database driver chack

pull/88/head
Aleksander Machniak 12 years ago
parent 8c6ef8f05b
commit d3b18e6fc9

@ -70,7 +70,7 @@ class rcube_db
$driver = isset($driver_map[$driver]) ? $driver_map[$driver] : $driver; $driver = isset($driver_map[$driver]) ? $driver_map[$driver] : $driver;
$class = "rcube_db_$driver"; $class = "rcube_db_$driver";
if (!class_exists($class)) { if (!$driver || !class_exists($class)) {
rcube::raise_error(array('code' => 600, 'type' => 'db', rcube::raise_error(array('code' => 600, 'type' => 'db',
'line' => __LINE__, 'file' => __FILE__, 'line' => __LINE__, 'file' => __FILE__,
'message' => "Configuration error. Unsupported database driver: $driver"), 'message' => "Configuration error. Unsupported database driver: $driver"),

Loading…
Cancel
Save