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

This commit is contained in:
Florian HENRY 2015-12-02 12:12:26 +01:00
parent ae87a270e4
commit bd632cf2b0

View File

@ -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;