From 1c5c8496dda9be3a38e066d1d12d2b2f282e6ae1 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 29 Jun 2009 14:05:01 +0000 Subject: [PATCH] Fix: Use empty istead of isset --- htdocs/admin/const.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/admin/const.php b/htdocs/admin/const.php index 33414e558c3..f9f06f62a95 100644 --- a/htdocs/admin/const.php +++ b/htdocs/admin/const.php @@ -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);