Commit a1ece70edaefad689a54a514cb36c0fe907d1f7f

Authored by Michael Joseph
1 parent 1428b284

quoted lookup value

added debug logging


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@234 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 2 additions and 1 deletions
lib/SiteMap.inc
@@ -59,7 +59,7 @@ class SiteMap { @@ -59,7 +59,7 @@ class SiteMap {
59 $default->log->debug("Sitemap::getPage section=$section"); 59 $default->log->debug("Sitemap::getPage section=$section");
60 // for each group, page array combination 60 // for each group, page array combination
61 foreach ($valArr as $requiredGroup => $pageArr) { 61 foreach ($valArr as $requiredGroup => $pageArr) {
62 - $reqGrpID = lookupID($default->owl_groups_table, "name", $requiredGroup); 62 + $reqGrpID = lookupID($default->owl_groups_table, "name", "'$requiredGroup'");
63 $default->log->debug("Sitemap::getPage requiredGroup=$requiredGroup; reqGrpID=$reqGrpID"); 63 $default->log->debug("Sitemap::getPage requiredGroup=$requiredGroup; reqGrpID=$reqGrpID");
64 // now loop through pages until we find the right one 64 // now loop through pages until we find the right one
65 foreach ($pageArr as $ackshin => $page) { 65 foreach ($pageArr as $ackshin => $page) {
@@ -72,6 +72,7 @@ class SiteMap { @@ -72,6 +72,7 @@ class SiteMap {
72 // we're assuming that the default groups will be created in the right 72 // we're assuming that the default groups will be created in the right
73 // order, so that groups with sys and unit access have lower ids than 73 // order, so that groups with sys and unit access have lower ids than
74 // the required ones! 74 // the required ones!
  75 + $default->log->debug("Sitemap::getPage groupid array length=" . count($groupIDs));
75 for ($i = 0; $i<count($groupIDs); $i++) { 76 for ($i = 0; $i<count($groupIDs); $i++) {
76 $default->log->debug("Sitemap::getPage current groupid=" . $groupIDs[$i] . "; reqGrpID=$reqGrpID"); 77 $default->log->debug("Sitemap::getPage current groupid=" . $groupIDs[$i] . "; reqGrpID=$reqGrpID");
77 if ($groupIDs[$i] <= $reqGrpID) { 78 if ($groupIDs[$i] <= $reqGrpID) {