This commit is contained in:
Roman Kelesidis 2025-03-01 21:12:56 +03:00
commit 9ecc26b048
2 changed files with 5 additions and 5 deletions

View file

@ -68,7 +68,7 @@ class Html
foreach ($params as $opt_name => $opt_val) {
$opt_name = rtrim($opt_name);
if (\is_array($opt_val)) {
if (is_array($opt_val)) {
$this->cur_attr =& $this->cur_attr[$opt_name];
$label = str_short(htmlCHR($opt_name), $this->max_length);
@ -114,7 +114,7 @@ class Html
public function _array2html_rec($array, $ul, $li)
{
foreach ($array as $k => $v) {
if (\is_array($v)) {
if (is_array($v)) {
$this->out .= "<$li><span class=\"b\">$k</span><$ul>";
$this->_array2html_rec($v, $ul, $li);
$this->out .= "</$ul></$li>";

View file

@ -24,7 +24,7 @@ class Group
{
global $datastore;
if (\is_array($user_id)) {
if (is_array($user_id)) {
$user_id = implode(',', $user_id);
}
$user_groups_in = ($user_id !== 'all') ? "AND ug.user_id IN($user_id)" : '';
@ -219,7 +219,7 @@ class Group
*/
public static function store_permissions($group_id, $auth_ary)
{
if (empty($auth_ary) || !\is_array($auth_ary)) {
if (empty($auth_ary) || !is_array($auth_ary)) {
return;
}
@ -244,7 +244,7 @@ class Group
*/
private static function update_user_permissions($user_id = 'all')
{
if (\is_array($user_id)) {
if (is_array($user_id)) {
$user_id = implode(',', $user_id);
}
$delete_in = ($user_id !== 'all') ? " WHERE user_id IN($user_id)" : '';