forked from Wavyzz/dolibarr
Merge pull request #29009 from lamrani002/fixInDictMB
Fix condition in createDictionary for modulebuilder
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user