X-Git-Url: http://git.pippins.net/embedvideo/.git/static/git-logo.png?a=blobdiff_plain;f=inc%2Fclass.eq.inc.php;h=7f0d5a6e887671fb744d508cd3468d9b6aaf1508;hb=f043aa9ef5f150757d49f113307ea912c23006bc;hp=dd8cff777d6393019e1a1a319dee087b0a991949;hpb=991350fc9802caacbe14fa9052d7abd2e8fc00d6;p=eq%2F.git 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';