Hello there, as we were migrating our code to 4.2 we found that if you have a portal as global and as a 'tab', the portal will show on the home page even if the rest of the tabs don't.
Well, here is what I added for a fix around:
this gets read from the header.php file which is part of the theme.
So for this example we'll use /docroot/themes/Sugar/header.php
There is a line of code that we're specifically worried about.
$frames = $iFrame->lookup_frames('tab');
This loads all the frames that are setup to be in the "tabs".
I added this around it.
if(isset($_SESSION['authenticated_user_id'])){
$frames = $iFrame->lookup_frames('tab');
}
This only loads the tab info if the person is logged in. The code doesn't bomb as this appears to return an array and all the code is based off of a 'foreach' statement. since the array is empty, nothing happens.
Enjoy.


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks