From dd1fd40bfb80d2ef02dc6904142b69b495739169 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Fri, 14 Jul 2006 20:58:34 +0000 Subject: [PATCH] Better feedback if user forgets to pick a database type. --- config/index.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/index.php b/config/index.php index d64c13c27c..7e9315f359 100644 --- a/config/index.php +++ b/config/index.php @@ -578,6 +578,11 @@ if( $conf->posted && ( 0 == count( $errs ) ) ) { 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; @@ -1073,6 +1078,7 @@ if( count( $errs ) ) {
+$errs[DBpicktype]\n"; ?>
-- 2.20.1