aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2012-07-26 22:04:15 +0000
committerplegall <plg@piwigo.org>2012-07-26 22:04:15 +0000
commitbd98105b03b88f222537d568e68cea7c037398de (patch)
tree710df7843afe6664ab27d3005cb2ebeb52a26d2d /plugins
parent8a5ed170b026a747c57c0b8649e04d54bd8decdf (diff)
parente509fecfe9ec4dc01c23b083ba91973519095f5d (diff)
Create release 2.4.2 from branch 2.4 r171502.4.2
git-svn-id: http://piwigo.org/svn/tags/2.4.2@17152 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'plugins')
-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']);
}