]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Fixed SQL query bug in GetStoredBytesByJob() function
authorDavide Franco <bacula-dev@dflc.ch>
Thu, 3 Feb 2011 13:59:29 +0000 (14:59 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:43:38 +0000 (14:43 +0200)
 - Fixed bug in SQL query for GetStoredBytesByJob() function in bweb.inc.php

gui/bacula-web/bweb.inc.php

index 8e2c68ec5b0df09252d2088d674ff225532afed2..2c638ff76ef23614116124a5c2b9eecc72bbc175 100644 (file)
@@ -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 . '<br />';