diff --git a/html/admin/sql/patch/upgrade7.sql b/html/admin/sql/patch/upgrade7.sql
index e5cb3ec6f..3db7916cb 100644
--- a/html/admin/sql/patch/upgrade7.sql
+++ b/html/admin/sql/patch/upgrade7.sql
@@ -11,8 +11,8 @@ delete from jnt_fic_attr where fd_id=1 and ad_id=19;
delete from jnt_fic_attr where fd_id=2 and ad_id=19;
-- default periode for phpcompta
update user_pref set pref_periode=40 where pref_user='phpcompta';
--- create index ix_j_grp jrnx(j_grpt);
--- create index ix_jr_grp jrn(jr_grpt_id);
+-- create index ix_j_grp on jrnx(j_grpt);
+-- create index ix_jr_grp on jrn(jr_grpt_id);
-- version 8
update version set val=8;
commit;
diff --git a/html/admin_repo.php b/html/admin_repo.php
index 86ef49eb1..800215ff8 100644
--- a/html/admin_repo.php
+++ b/html/admin_repo.php
@@ -206,7 +206,7 @@ if ( $count == 0 ) {
// get the mod_id
$l_id=GetSequence($cn,'s_modid');
if ( $l_id != 0 ) {
- $Sql=sprintf("CREATE %sDATABASE MOD%d encoding='ISO8859-1' TEMPLATE DOSSIER%s",domaine,$l_id,$_POST["FMOD_DBID"]);
+ $Sql=sprintf("CREATE DATABASE %sMOD%d encoding='ISO8859-1' TEMPLATE %sDOSSIER%s",domaine,$l_id,domaine,$_POST["FMOD_DBID"]);
ExecSql($cn,$Sql);
}
}// if $mod_name != null