[Fusionforge-commits] r17862 - trunk/src/www/frs/reporting
Marc-Etienne VARGENAU
vargenau at fusionforge.org
Fri Aug 30 15:31:15 CEST 2013
Author: vargenau
Date: 2013-08-30 15:31:15 +0200 (Fri, 30 Aug 2013)
New Revision: 17862
Modified:
trunk/src/www/frs/reporting/downloads.php
Log:
Start and end dates must be different
Modified: trunk/src/www/frs/reporting/downloads.php
===================================================================
--- trunk/src/www/frs/reporting/downloads.php 2013-08-30 13:16:11 UTC (rev 17861)
+++ trunk/src/www/frs/reporting/downloads.php 2013-08-30 13:31:15 UTC (rev 17862)
@@ -80,6 +80,7 @@
if (!$end) {
$end = $z[ count($z)-1 ];
}
+
if ($end < $start) list($start, $end) = array($end, $start);
html_use_jqueryjqplotpluginCanvas();
@@ -116,7 +117,9 @@
$data = $report->getData();
-if (count($data) == 0) {
+if ($start == $end) {
+ echo '<p class="warning">'._('Start and end dates must be different').'</p>';
+} elseif (count($data) == 0) {
echo '<p class="information">';
echo _('There have been no downloads for this package.');
echo '</p>';
More information about the Fusionforge-commits
mailing list