FIX : Use "WHERE true" instead of "WHERE 1" #4132

This commit is contained in:
Florian HENRY 2015-12-03 10:27:23 +01:00
parent e6806611a6
commit 281eaf2987

View File

@ -818,7 +818,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;