Fix: Module was not able to activate if field type not filled.

This commit is contained in:
Laurent Destailleur 2008-09-04 23:26:37 +00:00
parent ba55f10ea2
commit e8c08414d6

View File

@ -618,6 +618,7 @@ class DolibarrModules
dolibarr_syslog("DolibarrModules::insert_const sql=".$sql);
if (! $this->db->query($sql) )
{
dolibarr_syslog("DolibarrModules::insert_const ".$this->db->lasterror(), LOG_ERR);
$err++;
}
}
@ -660,6 +661,8 @@ class DolibarrModules
$r_subperms = $this->rights[$key][5];
$r_modul = $this->rights_class;
if (empty($r_type)) $r_type='w';
if (strlen($r_perms) )
{
if (strlen($r_subperms) )