Typo in rank model prevented removal of existing ranks.
This commit is contained in:
parent
02fca4f476
commit
c665938d3d
@ -176,7 +176,7 @@ class RankModel extends Gdn_Model {
|
||||
*/
|
||||
public function Delete($RankID) {
|
||||
$Rank = $this->GetByID($RankID);
|
||||
if(!$Rank) {
|
||||
if($Rank) {
|
||||
$this->SQL->Delete('Rank', array('RankID' => $RankID));
|
||||
return TRUE;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user