summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2008-04-13 06:53:01 +0200
committerAndreas Unterkircher <unki@netshadow.at>2008-04-13 06:53:01 +0200
commit3f6b85d5486469cd98661904266606f4387d5a16 (patch)
treee18d3e75ffbe125cc13c9ea6cf1fbf63cdedbf4e
parente173051918510189344372c75f16a5ded0d7a5ea (diff)
issue116, do not show hidden tags in the photo-details box
Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
-rw-r--r--phpfspot.class.php5
1 files changed, 4 insertions, 1 deletions
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;