Fix sql error
This commit is contained in:
parent
fc37c393ce
commit
3ff154c1d0
@ -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_subperms = isset($this->rights[$key][5])?$this->rights[$key][5]:'';
|
||||||
$r_modul = empty($this->rights_class)?strtolower($this->name):$this->rights_class;
|
$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
|
// Search if perm already present
|
||||||
$sql = "SELECT count(*) as nb FROM ".MAIN_DB_PREFIX."rights_def";
|
$sql = "SELECT count(*) as nb FROM ".MAIN_DB_PREFIX."rights_def";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user