summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-01-31 13:18:38 +0100
committerAleksander Machniak <alec@alec.pl>2013-01-31 13:18:38 +0100
commit41db2bf47db6df8b6065986b7488f3fc538ebc14 (patch)
tree07ce1a75aac3dce4fc75d9be8cdbf1095f48f5fe /program
parent8466690851f0774facc6c8e443a0df2610c96ce5 (diff)
Slightly improve database driver chack
Diffstat (limited to 'program')
-rw-r--r--program/lib/Roundcube/rcube_db.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/lib/Roundcube/rcube_db.php b/program/lib/Roundcube/rcube_db.php
index 086a38ab4..a3475a2fd 100644
--- a/program/lib/Roundcube/rcube_db.php
+++ b/program/lib/Roundcube/rcube_db.php
@@ -70,7 +70,7 @@ class rcube_db
$driver = isset($driver_map[$driver]) ? $driver_map[$driver] : $driver;
$class = "rcube_db_$driver";
- if (!class_exists($class)) {
+ if (!$driver || !class_exists($class)) {
rcube::raise_error(array('code' => 600, 'type' => 'db',
'line' => __LINE__, 'file' => __FILE__,
'message' => "Configuration error. Unsupported database driver: $driver"),