From: Alan J. Pippin Date: Mon, 17 Mar 2008 02:43:42 +0000 (-0600) Subject: Fixed yearly ppi scheduling tool bug which caused non eqpresppi's to count as yearly... X-Git-Tag: release_0_3_0~9 X-Git-Url: http://git.pippins.net/embedvideo/.git/%22%22.%24thumbnail.%22/%27%20%20%20%20.%20%24GLOBALS%5B%27phpgw%27%5D-%3Elink%28%27inc/jquery/static/git-favicon.png?a=commitdiff_plain;h=3319d1f2ac9bd7dec6753458db0506cdd6c54957;p=eq%2F.git Fixed yearly ppi scheduling tool bug which caused non eqpresppi's to count as yearly PPIs. --- diff --git a/inc/class.eq.inc.php b/inc/class.eq.inc.php index ca6b809..3cbb028 100644 --- a/inc/class.eq.inc.php +++ b/inc/class.eq.inc.php @@ -1570,7 +1570,7 @@ class eq // If this elder has had a yearly PPI this year, don't show him on the schedule list $year_start = $year - 1 . "-12-31"; $year_end = $year + 1 . "-01-01"; $sql = "SELECT * FROM eq_ppi WHERE date > '$year_start' AND date < '$year_end' ". - "AND elder=" . $id; + "AND elder=" . $id . " AND eqpresppi=1"; $this->db2->query($sql,__LINE__,__FILE__); if(!$this->db2->next_record()) {