From: Davide Franco Date: Thu, 3 Feb 2011 13:59:29 +0000 (+0100) Subject: bacula-web: Fixed SQL query bug in GetStoredBytesByJob() function X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=95f40618145bd63a101169d36078f9eaa2e6f8f4;p=bacula%2Fbacula bacula-web: Fixed SQL query bug in GetStoredBytesByJob() function - Fixed bug in SQL query for GetStoredBytesByJob() function in bweb.inc.php --- diff --git a/gui/bacula-web/bweb.inc.php b/gui/bacula-web/bweb.inc.php index 8e2c68ec5b..2c638ff76e 100644 --- a/gui/bacula-web/bweb.inc.php +++ b/gui/bacula-web/bweb.inc.php @@ -645,7 +645,7 @@ class Bweb extends DB { public function GetStoredBytesByJob( $jobname, $start_date, $end_date ) { $query = "SELECT SUM(JobBytes) as stored_bytes, EndTime FROM Job "; - $query .= "WHERE EndTime BETWEEN ( '$start_date' AND '$end_date' ) AND "; + $query .= "WHERE ( EndTime BETWEEN '$start_date' AND '$end_date' ) AND "; $query .= "Name = '$jobname'"; echo 'query ' . $query . '
';