From: Andreas Unterkircher Date: Sun, 13 Apr 2008 04:53:01 +0000 (+0200) Subject: issue116, do not show hidden tags in the photo-details box X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f6b85d5486469cd98661904266606f4387d5a16;p=phpfspot.git issue116, do not show hidden tags in the photo-details box Signed-off-by: Andreas Unterkircher --- diff --git a/phpfspot.class.php b/phpfspot.class.php index 0615cff..a279eff 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -1970,8 +1970,11 @@ class PHPFSPOT { $tags = Array(); - while($row = $this->db->db_fetch_object($result)) + while($row = $this->db->db_fetch_object($result)) { + if(isset($this->cfg->hide_tags) && in_array($row['name'], $this->cfg->hide_tags)) + continue; $tags[$row['id']] = $row['name']; + } return $tags;