Thread:Project:Support desk/Vector - Hide Toolbox for Anonymous Users/reply (6)

Hi, my code doesn't look the same as that so I wasn't sure what to do. This is what I have in that file by default:

private function renderPortals( $portals ) { // Force the rendering of the following portals if ( !isset( $portals['SEARCH'] ) ) $portals['SEARCH'] = true; if ( !isset( $portals['TOOLBOX'] ) ) $portals['TOOLBOX'] = true;

if ( !isset( $portals['LANGUAGES'] ) ) $portals['LANGUAGES'] = true; // Render portals foreach ( $portals as $name => $content ) { echo "\n\n"; switch( $name ) { case 'SEARCH': break; case 'TOOLBOX': ?>

Could you please tell me what I should use instead of the above.