]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Fixed variables case
authorDavide Franco <bacula-dev@dflc.ch>
Fri, 1 Jul 2011 13:45:34 +0000 (15:45 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:18 +0000 (14:49 +0200)
gui/bacula-web/backupjob-report.php
gui/bacula-web/templates/backupjob-report.tpl

index 35d5ad0284e9e39ff74e343de47e99242380ac87..f3f9f1a992cc03e996976703b9174055124bdf85 100644 (file)
   \r
   if( ! PEAR::isError( $result ) )\r
   {\r
-       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)
index b36d71801ffa2f2100e2c72ea0ab212266408154..55a8efcf429600aafb970675ef92e551f152b81a 100644 (file)
@@ -55,7 +55,7 @@
                {foreach from=$jobs item=job}\r
                <tr>\r
                        <td class="{$job.row_class}">{$job.jobid}</td>
-                       <td class="{$job.row_class}">{$job.level}</td>
+                       <td class="{$job.row_class}">{$job.joblevel}</td>
                        <td class="{$job.row_class}">{$job.jobfiles}</td>
                        <td class="{$job.row_class}">{$job.jobbytes}</td>
                        <td class="{$job.row_class}">{$job.starttime}</td>