bug 2953 fixed: ['QUERY_STRING'] is not alway set

git-svn-id: http://piwigo.org/svn/trunk@25930 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall 2013-12-12 10:40:39 +00:00
parent 483cce2612
commit 04230f0547

View file

@ -103,7 +103,7 @@ $test_get = $_GET;
unset($test_get['page']); unset($test_get['page']);
unset($test_get['section']); unset($test_get['section']);
unset($test_get['tag']); unset($test_get['tag']);
if (count($test_get) == 0) if (count($test_get) == 0 and !empty($_SERVER['QUERY_STRING']))
{ {
$change_theme_url.= str_replace('&', '&', $_SERVER['QUERY_STRING']).'&'; $change_theme_url.= str_replace('&', '&', $_SERVER['QUERY_STRING']).'&';
} }