if ($conf->DBtype === $db)
$conf->DBtypename = $ourdb[$db]['fullname'];
}
+ if ( ! strlen($conf->DBtype)) {
+ $errs["DBpicktype"] = "Please choose a database type";
+ continue;
+ }
+
if (! $conf->DBtypename) {
$errs["DBtype"] = "Unknown database type '$conf->DBtype'";
continue;
<div class="config-section">
<div class="config-input">
<label class='column'>Database type:</label>
+<?php if (isset($errs['DBpicktype'])) print "<span class='error'>$errs[DBpicktype]</span>\n"; ?>
<ul class='plain'><?php database_picker($conf) ?></ul>
</div>