From e509fecfe9ec4dc01c23b083ba91973519095f5d Mon Sep 17 00:00:00 2001 From: mistic100 Date: Thu, 26 Jul 2012 21:26:12 +0000 Subject: [language_switch] merge r17149 from trunk error introduced in previous commit git-svn-id: http://piwigo.org/svn/branches/2.4@17150 68402e56-0260-453c-a942-63ccdbb3a9ee --- plugins/language_switch/language_switch.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']); } -- cgit v1.2.3