Fix: bad value zero

This commit is contained in:
Regis Houssin 2009-10-30 21:06:58 +00:00
parent 0895c21108
commit 836462c275

View File

@ -761,7 +761,7 @@ class DolibarrModules
$visible= $this->const[$key][4];
$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.= " FROM ".MAIN_DB_PREFIX."const";