Skip to content

Commit

Permalink
Update peruser.php
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Nov 2, 2017
1 parent ec3a07c commit 310bf4b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions htdocs/comm/action/peruser.php
Expand Up @@ -398,8 +398,14 @@
elseif ($actioncode == 'AC_ALL_AUTO') $sql.= " AND ca.type = 'systemauto'";
else
{
$TActionCode=(Array)$actioncode;
$sql.=" AND ca.code IN ('".implode("','", $TActionCode)."')";
if (is_array($actioncode))
{
$sql.=" AND ca.code IN ('".implode("','", $actioncode)."')";
}
else
{
$sql.=" AND ca.code IN ('".implode("','", explode(',', $actioncode))."')";
}
}
}
}
Expand Down

0 comments on commit 310bf4b

Please sign in to comment.