r1883 + fix a bug in getObjectiveTagTree(): top tree branches could often be skipped...
authorDenis Ovsienko <infrastation@yandex.ru>
Mon, 14 Apr 2008 19:20:54 +0000 (19:20 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Mon, 14 Apr 2008 19:20:54 +0000 (19:20 +0000)
inc/functions.php

index 7c5c0e5..97a8213 100644 (file)
@@ -1601,7 +1601,7 @@ function getObjectiveTagTree ($tree, $realm)
                        $subsearch = getObjectiveTagTree ($taginfo['kids'], $realm);
                        $pick = count ($subsearch) > 0;
                }
-               elseif (isset ($taginfo['refcnt'][$realm]))
+               if (isset ($taginfo['refcnt'][$realm]))
                        $pick = TRUE;
                if (!$pick)
                        continue;