Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

Commit

Permalink
Merge pull request #140 from Hilarious001/patch-23
Browse files Browse the repository at this point in the history
Fix remove privilige from users rank
  • Loading branch information
jkroepke committed Mar 9, 2016
2 parents 8267cd5 + 5d25ab4 commit 61e9086
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/pages/game/ShowAlliancePage.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1288,12 +1288,12 @@ protected function adminPermissionsSend()

unset($rowData['rankName']);

foreach($rowData as $key => $value)
foreach($this->availableRanks as $key => $value)
{
if(isset($this->availableRanks[$key]) && $this->rights[$this->availableRanks[$key]])
{
$sql .= ', `'.$this->availableRanks[$key].'` = :'.$this->availableRanks[$key];
$params[':'.$this->availableRanks[$key]] = $value == 1 ? 1 : 0;
$params[':'.$this->availableRanks[$key]] = (isset($rowData[$key])) == 1 ? 1 : 0;
}
}

Expand Down

0 comments on commit 61e9086

Please sign in to comment.