r3012 - getExplicitTagsOnly(): cache was filled mistakenly, fix
[racktables] / inc / functions.php
index d4b0ac4393d79cbc8525895c503c09c90d53b513..a186187e2e5e4117e712c4f0d72cd32c28a26688 100644 (file)
@@ -980,7 +980,7 @@ function getExplicitTagsOnly ($chain)
                        if ($tagidA == $tagidB)
                                continue;
                        if (!isset ($tagRelCache[$tagidA][$tagidB]))
-                               $tagRelCache[$tagidA][$tagidB] = tagOnChain ($chain[$keyA], $taglist[$tagidB]['trace']);
+                               $tagRelCache[$tagidA][$tagidB] = in_array ($tagidA, $taglist[$tagidB]['trace']);
                        if ($tagRelCache[$tagidA][$tagidB] === TRUE) // A is ancestor of B
                                continue 2; // skip this A
                }