Fix sql error

This commit is contained in:
Laurent Destailleur 2019-06-06 19:05:47 +02:00
parent fc37c393ce
commit 3ff154c1d0

View File

@ -1691,8 +1691,8 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it
$r_subperms = isset($this->rights[$key][5])?$this->rights[$key][5]:'';
$r_modul = empty($this->rights_class)?strtolower($this->name):$this->rights_class;
if (empty($r_type)) { $r_type='w';
}
if (empty($r_type)) { $r_type='w'; }
if (empty($r_def)) { $r_def=0; }
// Search if perm already present
$sql = "SELECT count(*) as nb FROM ".MAIN_DB_PREFIX."rights_def";