Skip to content
Snippets Groups Projects
Commit 8ebee83d authored by Alex Pott's avatar Alex Pott
Browse files

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
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment