]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/bacula-web/report.php
ebl Fix a bug in user edition
[bacula/bacula] / gui / bacula-web / report.php
index 3ba21291e2c78e68dbecf33b0293d7ea2062c008..8dc2c163dc7706f61a900e2abbdecfd386762988 100644 (file)
@@ -14,7 +14,7 @@
 | GNU General Public License for more details.                            |
 +-------------------------------------------------------------------------+ 
 */
-
+session_start();
 require ("paths.php");
 require($smarty_path."Smarty.class.php");
 include "classes.inc";
@@ -56,9 +56,9 @@ else if ($dbSql->driver == "pgsql")
                 or die("Error query row 56");
 
 while ( $tmp = $res_jobs->fetchRow(DB_FETCHMODE_ASSOC) ) {
-        $tdate = explode (":",$tmp[elapsed]);                                                                           // Temporal "workaround" ;) Fix later
+        $tdate = explode (":",$tmp['elapsed']);                                                                           // Temporal "workaround" ;) Fix later
         if ( $tdate[0] > 300000 )
-                $tmp[elapsed] = "00:00:00";
+                $tmp['elapsed'] = "00:00:00";
         array_push($a_jobs,$tmp);
 }
 $smarty->assign('jobs',$a_jobs);