From: Alan Jack Pippin Date: Wed, 5 Apr 2006 04:18:34 +0000 (-0600) Subject: Fixed bug related to how the eqpresppi district was being chosen. X-Git-Tag: release_0_1_0~52 X-Git-Url: http://git.pippins.net/embedvideo/.git/static/images/%7Bdelete%7D?a=commitdiff_plain;h=9f9fc578e5ba70649ff8031cc16aa6a05caccf9a;p=eq%2F.git Fixed bug related to how the eqpresppi district was being chosen. --- diff --git a/inc/class.eq.inc.php b/inc/class.eq.inc.php index d9a58fa..aab3ffd 100644 --- a/inc/class.eq.inc.php +++ b/inc/class.eq.inc.php @@ -875,10 +875,16 @@ class eq $i=0; while ($this->db->next_record()) { - $districts[$i]['district'] = $this->db->f('district'); - $districts[$i]['name'] = $this->db->f('name'); - $districts[$i]['supervisor'] = $this->db->f('supervisor'); - if($eqpresppi == 0) { $i++; } + if($eqpresppi == 1 && $this->db->f('district') == 1) { + $districts[$i]['district'] = $this->db->f('district'); + $districts[$i]['name'] = $this->db->f('name'); + $districts[$i]['supervisor'] = $this->db->f('supervisor'); + } else if($eqpresppi == 0) { + $districts[$i]['district'] = $this->db->f('district'); + $districts[$i]['name'] = $this->db->f('name'); + $districts[$i]['supervisor'] = $this->db->f('supervisor'); + $i++; + } } $sql = "SELECT * FROM eq_elder where valid=1 ORDER BY elder ASC";