aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/language_switch
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/language_switch')
-rw-r--r--plugins/language_switch/language_switch.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/language_switch/language_switch.inc.php b/plugins/language_switch/language_switch.inc.php
index 7b99f4b06..b5318746a 100644
--- a/plugins/language_switch/language_switch.inc.php
+++ b/plugins/language_switch/language_switch.inc.php
@@ -98,7 +98,7 @@ function language_controler_flags()
$url_starting = get_query_string_diff(array('lang'));
- if ($page['section'] == 'additional_page' and isset($page['additional_page']))
+ if (isset($page['section']) and $page['section'] == 'additional_page' and isset($page['additional_page']))
{
$base_url = make_index_url(array('section'=>'page')).'/'.(isset($page['additional_page']['permalink']) ? $page['additional_page']['permalink'] : $page['additional_page']['id']);
}