diff options
Diffstat (limited to 'modules/Menu.php')
-rw-r--r-- | modules/Menu.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/Menu.php b/modules/Menu.php index a36797f482..84e06b5a70 100644 --- a/modules/Menu.php +++ b/modules/Menu.php @@ -58,7 +58,10 @@ function Piwik_RenameMenuEntry($mainMenuOriginal, $subMenuOriginal, $mainMenuRenamed, $subMenuRenamed) { global $mainMenu; - $save = $mainMenu[$mainMenuOriginal][$subMenuOriginal]; - unset($mainMenu[$mainMenuOriginal][$subMenuOriginal]); - $mainMenu[$mainMenuRenamed][$subMenuRenamed] = $save; + if(isset($mainMenu[$mainMenuOriginal][$subMenuOriginal])) + { + $save = $mainMenu[$mainMenuOriginal][$subMenuOriginal]; + unset($mainMenu[$mainMenuOriginal][$subMenuOriginal]); + $mainMenu[$mainMenuRenamed][$subMenuRenamed] = $save; + } } |