From: Alan J. Pippin Date: Mon, 7 Jul 2008 04:52:46 +0000 (-0600) Subject: Fixed bug in querying eqpres PPI history in scheduling tool. X-Git-Tag: release_0_3_1 X-Git-Url: http://git.pippins.net/embedvideo/.git/%22%22.%24thumbnail.%22/%7Bupdate_day%7D?a=commitdiff_plain;h=f043aa9ef5f150757d49f113307ea912c23006bc;p=eq%2F.git Fixed bug in querying eqpres PPI history in scheduling tool. --- diff --git a/inc/class.eq.inc.php b/inc/class.eq.inc.php index dd8cff7..7f0d5a6 100644 --- a/inc/class.eq.inc.php +++ b/inc/class.eq.inc.php @@ -1599,7 +1599,7 @@ class eq $this->db2->query($sql,__LINE__,__FILE__); if(!$this->db2->next_record()) { - $sql = "SELECT * FROM eq_ppi WHERE elder=" . $id . " ORDER BY date DESC"; + $sql = "SELECT * FROM eq_ppi WHERE elder=" . $id . " AND eqpresppi=1 ORDER BY date DESC"; $this->db->query($sql,__LINE__,__FILE__); if($this->db->next_record()) { $date = $this->db->f('date'); } else { $date = ""; } $link_data['menuaction'] = 'eq.eq.ppi_update';