Commit aa38fe02e7c15551dc68a47614eeb03116fbf293

Authored by Megan Watson
1 parent 7f05663c

KTC-286

"Welcome to knowledgeTree dashlet should always be on the top left corner of the dashlet container"
Fixed. Added a check, if the list of dashlets for the user is empty, then it should find the welcome dashlet and move it.

Committed by: Megan Watson
Reviewed by: Jonathan Byrne



git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@8012 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 1 additions and 1 deletions
lib/users/User.inc
... ... @@ -236,7 +236,7 @@ class User extends KTEntity {
236 236  
237 237 // Check if the KT Info dashlet is being displayed
238 238 // If it's not in the top left corner, move it there.
239   - if(!(strpos($sKnownlist, 'KTInfoDashlet') === false) && $knownlist[0] != "'KTInfoDashlet'"){
  239 + if((!(strpos($sKnownlist, 'KTInfoDashlet') === false) && $knownlist[0] != "'KTInfoDashlet'") || empty($knownlist)){
240 240 $left = $dashlets->left;
241 241 $right = $dashlets->right;
242 242  
... ...