aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2013-12-12 10:40:39 +0000
committerplegall <plg@piwigo.org>2013-12-12 10:40:39 +0000
commit04230f054776c4a6b1c28ddcc1a2e302be96d6e8 (patch)
treee8a85bdbba724bbdea05e74bef058c29084cb06c
parent483cce26121918960163e501b4feb132572cc76d (diff)
bug 2953 fixed: ['QUERY_STRING'] is not alway set
git-svn-id: http://piwigo.org/svn/trunk@25930 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--admin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin.php b/admin.php
index de3d9a90e..675948cad 100644
--- a/admin.php
+++ b/admin.php
@@ -103,7 +103,7 @@ $test_get = $_GET;
unset($test_get['page']);
unset($test_get['section']);
unset($test_get['tag']);
-if (count($test_get) == 0)
+if (count($test_get) == 0 and !empty($_SERVER['QUERY_STRING']))
{
$change_theme_url.= str_replace('&', '&amp;', $_SERVER['QUERY_STRING']).'&amp;';
}