From c665938d3dba27dbe87ae33bc0d3707e1418184d Mon Sep 17 00:00:00 2001 From: Zachary Doll Date: Tue, 10 Feb 2015 14:08:45 -0600 Subject: [PATCH] Typo in rank model prevented removal of existing ranks. --- models/class.rankmodel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/class.rankmodel.php b/models/class.rankmodel.php index 77e36e7..4e3bb27 100644 --- a/models/class.rankmodel.php +++ b/models/class.rankmodel.php @@ -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; }