aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions.inc.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2011-08-31 20:30:59 +0000
committerplegall <plg@piwigo.org>2011-08-31 20:30:59 +0000
commita4cfa43b26b247b2e84fc0acf44d7ff63c524dab (patch)
treeda2bb63c9fa25f0b70e87b3c445772d168480515 /include/functions.inc.php
parent891979dfbc2ff2f6dc9ab81e51e516f3ad3c2f9a (diff)
merge r12022 from branch 2.2 to trunk
bug 2421 fixed: no more warning on comments.php when $_SERVER['QUERY_STRING'] is not defined git-svn-id: http://piwigo.org/svn/trunk@12023 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/functions.inc.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php
index 25cce8b70..5debca5d3 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -655,6 +655,11 @@ function redirect( $url , $msg = '', $refresh_time = 0)
*/
function get_query_string_diff($rejects=array(), $escape=true)
{
+ if (empty($_SERVER['QUERY_STRING']))
+ {
+ return '';
+ }
+
$query_string = '';
$str = $_SERVER['QUERY_STRING'];