issue116, do not show hidden tags in the photo-details box
authorAndreas Unterkircher <unki@netshadow.at>
Sun, 13 Apr 2008 04:53:01 +0000 (06:53 +0200)
committerAndreas Unterkircher <unki@netshadow.at>
Sun, 13 Apr 2008 04:53:01 +0000 (06:53 +0200)
Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
phpfspot.class.php

index 0615cff77a5d7742cc29461b42cf2cf4e8c54b13..a279effe0555b3a3dacf316f70d86eb4f7f34bb1 100644 (file)
@@ -1970,8 +1970,11 @@ class PHPFSPOT {
 
       $tags = Array();
 
 
       $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'];
          $tags[$row['id']] = $row['name'];
+      }
 
       return $tags;
 
 
       return $tags;