Showing the menu to show the logout button see BT#8072
Minor - fixing PHP warnings.