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
This commit is contained in:
plegall 2011-08-31 20:30:35 +00:00
parent 3b8b9d8869
commit e1eecd6b4d

View file

@ -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'];