aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorjhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6>2010-01-07 20:09:59 -0500
committerjhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6>2010-01-07 20:09:59 -0500
commit3fcd856339e8f1daa1a7f51f0d2a7ff019ed7526 (patch)
tree42ef49b0ac4d20f4e0c319dfbc5286e13fb00f0a /modules
parent67c7ce0ed3d2d47754a6d66458220b1dc70940c7 (diff)
downloadbayonetcms-3fcd856339e8f1daa1a7f51f0d2a7ff019ed7526.tar.gz
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
Diffstat (limited to 'modules')
-rw-r--r--modules/rudi/includes/common.class.php2
1 files changed, 1 insertions, 1 deletions
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');