29
0
mirror of https://github.com/joomla/joomla-cms.git synced 2024-06-29 16:43:42 +00:00

Added isset() check to prevent PHP notice

git-svn-id: http://joomlacode.org/svn/joomla/development/trunk@9755 6f6e1ebd-4c2b-0410-823f-f34bde69bce9
This commit is contained in:
Toby Patterson 2007-12-28 11:20:27 +00:00
parent 1d68b5b49f
commit f1c69cebf1

View File

@ -217,7 +217,7 @@ class JRouterSite extends JRouter
/*
* Parse the component route
*/
if(!empty($route))
if(!empty($route) && isset($this->_vars['option']) )
{
$segments = explode('/', $route);
array_shift($segments);