Typo in rank model prevented removal of existing ranks.

This commit is contained in:
Zachary Doll 2015-02-10 14:08:45 -06:00
parent 02fca4f476
commit c665938d3d

View File

@ -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;
}