Fix: Use empty istead of isset
This commit is contained in:
parent
8a4a04760f
commit
1c5c8496dd
@ -121,7 +121,7 @@ $sql.= ", note";
|
|||||||
$sql.= ", entity";
|
$sql.= ", entity";
|
||||||
$sql.= " FROM ".MAIN_DB_PREFIX."const";
|
$sql.= " FROM ".MAIN_DB_PREFIX."const";
|
||||||
$sql.= " WHERE entity IN (0,".$conf->entity.")";
|
$sql.= " WHERE entity IN (0,".$conf->entity.")";
|
||||||
if (!empty($all)) $sql.= " AND visible = 1";
|
if (empty($all)) $sql.= " AND visible = 1";
|
||||||
$sql.= " ORDER BY name ASC";
|
$sql.= " ORDER BY name ASC";
|
||||||
|
|
||||||
dol_syslog("Const::listConstant sql=".$sql);
|
dol_syslog("Const::listConstant sql=".$sql);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user