Can you please assist, as I don't know how to fix it -
<?php
/**
* @version $Id:mod_menu.php 2463 2006-02-18 06:05:38Z webImagery $
* @package Joomla
* @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/

// no direct access
defined('_JEXEC') or die('Restricted access');

// Lets get some variables we will need to render the menu
$lang =& JFactory::getLanguage();
$doc =& JFactory::getDocument();
$user =& JFactory::getUser();

// If hidemainmenu is true, we don't want to render this module at all
echo JAdminSubMenu::get();

/**
* Admin Submenu
*
* @package Joomla
* @since 1.5
*/
class JAdminSubMenu
{
function get()
{
global $mainframe;

// Lets get some variables we are going to need
$menu = JToolBar::getInstance('submenu');
$list = $menu->_bar;
if(!is_array($list) || !count($list))
{
$option = JRequest::getCmd('option');
if($option == 'com_categories')
{