2
0
forked from Wavyzz/dolibarr

Merge pull request #29009 from lamrani002/fixInDictMB

Fix condition in  createDictionary for modulebuilder
This commit is contained in:
Laurent Destailleur
2024-03-28 15:12:07 +01:00
committed by GitHub
2 changed files with 3 additions and 6 deletions

View File

@@ -2102,8 +2102,7 @@ if (($dirins && $action == 'confirm_deletedictionary' && $dicname) || ($dirins &
}
//chercher la table dicname
$query = "SHOW TABLES LIKE '" . MAIN_DB_PREFIX.strtolower($newdicname) . "'";
$checkTable = $db->query($query);
$checkTable = $db->DDLDescTable(MAIN_DB_PREFIX.strtolower($newdicname));
if ($checkTable && $db->num_rows($checkTable) <= 0) {
$error++;
}