From: Davide Franco Date: Fri, 1 Jul 2011 13:45:34 +0000 (+0200) Subject: bacula-web: Fixed variables case X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=42376c5741aabf6a5c83b7bef2c547d1c59d538a;p=bacula%2Fbacula bacula-web: Fixed variables case --- diff --git a/gui/bacula-web/backupjob-report.php b/gui/bacula-web/backupjob-report.php index 35d5ad0284..f3f9f1a992 100644 --- a/gui/bacula-web/backupjob-report.php +++ b/gui/bacula-web/backupjob-report.php @@ -97,13 +97,13 @@ if( ! PEAR::isError( $result ) ) { - while( $job = $result->fetchRow( DB_FETCHMODE_ASSOC ) ) + while( $job = $result->fetchRow() ) { // Job level description - $job['Level'] = $joblevel[ $job['Level'] ]; + $job['joblevel'] = $joblevel[ $job['level'] ]; // Job execution execution time - $job['elapsedtime'] = CTimeUtils::Get_Elapsed_Time( $job['StartTime'], $job['EndTime'] ); + $job['elapsedtime'] = CTimeUtils::Get_Elapsed_Time( $job['starttime'], $job['endtime'] ); // odd and even row if( count($jobs) % 2) diff --git a/gui/bacula-web/templates/backupjob-report.tpl b/gui/bacula-web/templates/backupjob-report.tpl index b36d71801f..55a8efcf42 100644 --- a/gui/bacula-web/templates/backupjob-report.tpl +++ b/gui/bacula-web/templates/backupjob-report.tpl @@ -55,7 +55,7 @@ {foreach from=$jobs item=job} {$job.jobid} - {$job.level} + {$job.joblevel} {$job.jobfiles} {$job.jobbytes} {$job.starttime}