Skip to content

Commit

Permalink
Merge pull request #22 from markussoeth/master
Browse files Browse the repository at this point in the history
Made it working with PHP 8
  • Loading branch information
FlashTVR authored Jan 21, 2023
2 parents fd4f7da + eb18cd8 commit 3799203
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion controller/mcp_user_controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,9 @@ protected function change_flair($user_id, $change)
$action = $this->request->variable($change . '_flair', array('' => ''));
if (is_array($action))
{
list($id, ) = each($action);
foreach ($action as $id => $value)
{
}
}

if ($id)
Expand Down
4 changes: 3 additions & 1 deletion controller/ucp_flair_controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,9 @@ protected function change_flair($change, array $available_flair)
$action = $this->request->variable($change . '_flair', array('' => ''));
if (is_array($action))
{
list($id, ) = each($action);
foreach ($action as $id => $value)
{
}
}

if (in_array($id, $available_flair))
Expand Down

0 comments on commit 3799203

Please sign in to comment.