From 3fcd856339e8f1daa1a7f51f0d2a7ff019ed7526 Mon Sep 17 00:00:00 2001 From: jhunkeler Date: Fri, 8 Jan 2010 01:09:59 +0000 Subject: getRanks() will now only return ranks that are active. This is useful if you have a full list of military ranks (Army, Marines, etc) but you do not plan on using all of them. git-svn-id: http://svn.3rd-infantry-division.org/testing/branches/Bayonet CMS v2@459 c5b2fb0a-d05d-0410-98c8-828840a80ff6 --- modules/rudi/includes/common.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/rudi/includes/common.class.php b/modules/rudi/includes/common.class.php index f9425e2..21c7ccc 100644 --- a/modules/rudi/includes/common.class.php +++ b/modules/rudi/includes/common.class.php @@ -892,7 +892,7 @@ class RUDI_Common protected function getRanks() { - $query = "SELECT rank_id, shortname, longname, image FROM rudi_ranks ORDER BY weight DESC"; + $query = "SELECT rank_id, shortname, longname, image FROM rudi_ranks WHERE active = 1 ORDER BY weight DESC"; $result = $this->db->Query($query); $row = $this->db->FetchObject($result,'Rank'); -- cgit