diff --git a/tools/reporter/includes/query.inc.php b/tools/reporter/includes/query.inc.php index 202000b29131..c00c80fc0dc4 100644 --- a/tools/reporter/includes/query.inc.php +++ b/tools/reporter/includes/query.inc.php @@ -347,9 +347,16 @@ class query // finish off complete if($query_input['count']){ - $complete .= '&count=on'; + $complete .= 'count=on'; } + // strip off any remaining & that may be on the end + if(substr($standard, -5) == '&'){ + $standard = substr($standard, 0, -5); + } + if(substr($complete, -5) == '&'){ + $complete = substr($complete, 0, -5); + } // lets return return array($standard, $complete); }