Update peruser.php

This commit is contained in:
Laurent Destailleur 2017-11-02 15:51:35 +01:00 committed by GitHub
parent ec3a07cd52
commit 310bf4bde4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -398,8 +398,14 @@ if (! empty($actioncode))
elseif ($actioncode == 'AC_ALL_AUTO') $sql.= " AND ca.type = 'systemauto'"; elseif ($actioncode == 'AC_ALL_AUTO') $sql.= " AND ca.type = 'systemauto'";
else else
{ {
$TActionCode=(Array)$actioncode; if (is_array($actioncode))
$sql.=" AND ca.code IN ('".implode("','", $TActionCode)."')"; {
$sql.=" AND ca.code IN ('".implode("','", $actioncode)."')";
}
else
{
$sql.=" AND ca.code IN ('".implode("','", explode(',', $actioncode))."')";
}
} }
} }
} }