Fix: Use empty istead of isset

This commit is contained in:
Regis Houssin 2009-06-29 14:05:01 +00:00
parent 8a4a04760f
commit 1c5c8496dd

View File

@ -121,7 +121,7 @@ $sql.= ", note";
$sql.= ", entity";
$sql.= " FROM ".MAIN_DB_PREFIX."const";
$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";
dol_syslog("Const::listConstant sql=".$sql);