Update functions.lib.php

This commit is contained in:
Laurent Destailleur 2018-07-15 20:00:43 +02:00 committed by GitHub
parent 740f35966c
commit 0ca9f6f522
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7576,7 +7576,7 @@ function getDictvalue($tablename, $field, $id, $checkentity=false, $rowidfield='
{
$dictvalues[$tablename] = array();
$sql = 'SELECT * FROM '.$tablename.' WHERE 1';
if ($checkentity) $sql.= ' and entity IN (0,'.getEntity('').')';
if ($checkentity) $sql.= ' AND entity IN (0,'.getEntity('').')';
$resql = $db->query($sql);
if ($resql)