Fix: bad value zero
This commit is contained in:
parent
0895c21108
commit
836462c275
@ -761,7 +761,7 @@ class DolibarrModules
|
|||||||
$visible= $this->const[$key][4];
|
$visible= $this->const[$key][4];
|
||||||
$entity = $this->const[$key][5];
|
$entity = $this->const[$key][5];
|
||||||
|
|
||||||
$entity = ((!empty($entity) || $entity == 0)?$entity:$conf->entity);
|
$entity = ((!empty($entity) || $entity == '0')?$entity:$conf->entity);
|
||||||
|
|
||||||
$sql = "SELECT count(*)";
|
$sql = "SELECT count(*)";
|
||||||
$sql.= " FROM ".MAIN_DB_PREFIX."const";
|
$sql.= " FROM ".MAIN_DB_PREFIX."const";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user