Permalink
Browse files

Merge pull request #610 from ossreleasefeed/additional-check-for-version

ensure version is passed at all
  • Loading branch information...
2 parents 134ecd7 + 570d07b commit 1f586a23a8151a5356196195d389977df38f3fc3 @rhelmer rhelmer committed May 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 webapp-php/application/controllers/report.php
@@ -68,7 +68,7 @@ private function urls_for_sig($req_params) {
$service_params['start_date'] = date('Y-m-d\TH:i:s+0000', strtotime('-' . $time_ago, strtotime($req_params['date'])));
$service_params['end_date'] = date('Y-m-d\TH:i:s+0000', strtotime($req_params['date']));
$products_versions = $this->parse_versions($req_params['version']);
- if (!empty($req_params['version'])) {
+ if (isset($req_params['version']) && !empty($req_params['version'])) {
$service_params['products'] = implode("+", $products_versions[1]);
$service_params['versions'] = implode("+", $req_params['version']);
} else {

0 comments on commit 1f586a2

Please sign in to comment.