Commit 8ebee83d authored by alexpott's avatar alexpott

Issue #2228885 by Sweetchuck: Error message is attached to a non exists...

Issue #2228885 by Sweetchuck: Error message is attached to a non exists element  when table prefix is wrong.
parent 0ac4b910
......@@ -299,7 +299,7 @@ public function validateDatabaseSettings($database) {
// Verify the table prefix.
if (!empty($database['prefix']) && is_string($database['prefix']) && !preg_match('/^[A-Za-z0-9_.]+$/', $database['prefix'])) {
$errors[$database['driver'] . '][advanced_options][db_prefix'] = t('The database table prefix you have entered, %prefix, is invalid. The table prefix can only contain alphanumeric characters, periods, or underscores.', array('%prefix' => $database['prefix']));
$errors[$database['driver'] . '][prefix'] = t('The database table prefix you have entered, %prefix, is invalid. The table prefix can only contain alphanumeric characters, periods, or underscores.', array('%prefix' => $database['prefix']));
}
return $errors;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment