From: Davide Franco Date: Tue, 15 Feb 2011 11:09:22 +0000 (+0100) Subject: bacula-web: Fixed bug in GetStoredFilesByJob() function X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=000850f4a4f25a5b8e8ca3445f00e1e892ab30e7;p=bacula%2Fbacula bacula-web: Fixed bug in GetStoredFilesByJob() function - Fixed a bug with number of stored files in bweb.inc.php --- diff --git a/gui/bacula-web/bweb.inc.php b/gui/bacula-web/bweb.inc.php index 05c35ee54e..39deeaab53 100644 --- a/gui/bacula-web/bweb.inc.php +++ b/gui/bacula-web/bweb.inc.php @@ -676,25 +676,16 @@ class Bweb extends DB { $result = $this->db_link->query( $query ); - //echo $query . '
'; - if( PEAR::isError( $result ) ) { die( "Unable to get Job Files from catalog" ); }else{ $stored_bytes = 0; $tmp = $result->fetchRow( DB_FETCHMODE_ASSOC ); - var_dump( $tmp ); - $day = date( "D d", strtotime($end_date) ); - /* - if( isset( $tmp['stored_bytes'] ) ) { - $hbytes = $this->human_file_size( $tmp['stored_files'], 3, 'GB'); - $hbytes = explode( " ", $hbytes ); - $stored_bytes = $hbytes[0]; - } - */ + $day = date( "D d", strtotime($end_date) ); + $stored_files = $tmp['stored_files']; - return array( $day, $stored_bytes ); + return array( $day, $stored_files ); } }