From bd632cf2b0205c4e7a5c08c631a088ae31986378 Mon Sep 17 00:00:00 2001 From: Florian HENRY Date: Wed, 2 Dec 2015 12:12:26 +0100 Subject: [PATCH] FIX : Use "WHERE true" instead of "WHERE 1" #4132 --- htdocs/core/class/extrafields.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/extrafields.class.php b/htdocs/core/class/extrafields.class.php index a9aba7d48d5..627114f6acb 100644 --- a/htdocs/core/class/extrafields.class.php +++ b/htdocs/core/class/extrafields.class.php @@ -765,7 +765,7 @@ class ExtraFields } else { - $sqlwhere.= ' WHERE 1'; + $sqlwhere.= ' WHERE 1=1'; } if (in_array($InfoFieldList[0],array('tablewithentity'))) $sqlwhere.= ' AND entity = '.$conf->entity; // Some tables may have field, some other not. For the moment we disable it. $sql.=$sqlwhere;