fix sql error
This commit is contained in:
parent
e17d5279ac
commit
076bf0a3a7
@ -7576,7 +7576,7 @@ function getDictvalue($tablename, $field, $id, $checkentity=false, $rowidfield='
|
|||||||
{
|
{
|
||||||
$dictvalues[$tablename] = array();
|
$dictvalues[$tablename] = array();
|
||||||
$sql = 'SELECT * FROM '.$tablename.' WHERE 1';
|
$sql = 'SELECT * FROM '.$tablename.' WHERE 1';
|
||||||
if ($checkentity) $sql.= ' entity IN (0,'.getEntity('').')';
|
if ($checkentity) $sql.= ' and entity IN (0,'.getEntity('').')';
|
||||||
|
|
||||||
$resql = $db->query($sql);
|
$resql = $db->query($sql);
|
||||||
if ($resql)
|
if ($resql)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user