Commit 1f7b5a360cf7c3808de768da9dc460153dd35300

Authored by Michael Joseph
1 parent 8966e379

fixed dashboard west payload formatting


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@802 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/webpageTemplate.inc
@@ -47,8 +47,7 @@ $nwPayLoad ->setHtml($nwestLoad); @@ -47,8 +47,7 @@ $nwPayLoad ->setHtml($nwestLoad);
47 47
48 // set up the west payload 48 // set up the west payload
49 //get section links 49 //get section links
50 -if($sectionName != "General")  
51 -{ 50 +if ($sectionName != "General") {
52 $sectionArray = $default->siteMap->getSectionLinks($sectionName); 51 $sectionArray = $default->siteMap->getSectionLinks($sectionName);
53 52
54 //format the array..by taking first element off 53 //format the array..by taking first element off
@@ -58,10 +57,9 @@ if($sectionName != "General") @@ -58,10 +57,9 @@ if($sectionName != "General")
58 //create links 57 //create links
59 $westLinks = new PatternTableLinks($sectionArray["links"], $sectionArray["descriptions"], 50 , 1 ,1,null); 58 $westLinks = new PatternTableLinks($sectionArray["links"], $sectionArray["descriptions"], 50 , 1 ,1,null);
60 $westRender = $westLinks->render(); 59 $westRender = $westLinks->render();
61 -}  
62 -Else  
63 -{  
64 - $westRender = ""; 60 +} else {
  61 + $westLinks = new PatternTableLinks(array(), array(), 50 , 1 ,1,null);
  62 + $westRender = $westLinks->render();
65 } 63 }
66 64
67 //set up links 65 //set up links