Skip to content

Commit 91433cc

Browse files
committed
Fixed bug in database name prefix.
1 parent 1ff13e3 commit 91433cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/web/sites/database_edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ function onBeforeUpdate() {
231231

232232
//* Prevent that the database name and charset is changed
233233
$old_record = $app->tform->getDataRecord($this->id);
234-
if($old_record["database_name"] != $restriction . $this->dataRecord["database_name"]) {
234+
if($old_record["database_name"] != $dbname_prefix . $this->dataRecord["database_name"]) {
235235
$app->tform->errorMessage .= $app->tform->wordbook["database_name_change_txt"].'<br />';
236236
}
237237
if($old_record["database_charset"] != $this->dataRecord["database_charset"]) {

0 commit comments

Comments
 (0)