From e1eecd6b4d9d58c134cf98b971b07f0d86ea1974 Mon Sep 17 00:00:00 2001 From: plegall Date: Wed, 31 Aug 2011 20:30:35 +0000 Subject: bug 2421 fixed: no more warning on comments.php when $_SERVER['QUERY_STRING'] is not defined git-svn-id: http://piwigo.org/svn/branches/2.2@12022 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/functions.inc.php b/include/functions.inc.php index 7012db248..90be091f0 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']; -- cgit v1.2.3