From a1ece70edaefad689a54a514cb36c0fe907d1f7f Mon Sep 17 00:00:00 2001 From: Michael Joseph Date: Wed, 15 Jan 2003 16:15:47 +0000 Subject: [PATCH] quoted lookup value added debug logging --- lib/SiteMap.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/SiteMap.inc b/lib/SiteMap.inc index 77dfe4e..673fd04 100644 --- a/lib/SiteMap.inc +++ b/lib/SiteMap.inc @@ -59,7 +59,7 @@ class SiteMap { $default->log->debug("Sitemap::getPage section=$section"); // for each group, page array combination foreach ($valArr as $requiredGroup => $pageArr) { - $reqGrpID = lookupID($default->owl_groups_table, "name", $requiredGroup); + $reqGrpID = lookupID($default->owl_groups_table, "name", "'$requiredGroup'"); $default->log->debug("Sitemap::getPage requiredGroup=$requiredGroup; reqGrpID=$reqGrpID"); // now loop through pages until we find the right one foreach ($pageArr as $ackshin => $page) { @@ -72,6 +72,7 @@ class SiteMap { // we're assuming that the default groups will be created in the right // order, so that groups with sys and unit access have lower ids than // the required ones! + $default->log->debug("Sitemap::getPage groupid array length=" . count($groupIDs)); for ($i = 0; $ilog->debug("Sitemap::getPage current groupid=" . $groupIDs[$i] . "; reqGrpID=$reqGrpID"); if ($groupIDs[$i] <= $reqGrpID) { -- libgit2 0.21.4