]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Fixed bug with PEAR DB fetch mode in bweb.inc.php
authorDavide Franco <bacula-dev@dflc.ch>
Tue, 7 Dec 2010 13:33:10 +0000 (14:33 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:43:31 +0000 (14:43 +0200)
gui/bacula-web/bweb.inc.php

index 248207748de2c690f1481cacb84c4bb6ffdc05c2..4cb078990d25072d68c67a3d74271cfff922076d 100644 (file)
@@ -364,7 +364,7 @@ class Bweb extends DB {
                        if (PEAR::isError( $jobs ) ) {
                                die( "Unable to get last completed jobs status from catalog<br />" . $status->getMessage() );
                        }else {
-                               return $jobs->fetchRow();
+                               return $jobs->fetchRow( DB_FETCHMODE_ASSOC );
                        }
                } // end function GetLastJobStatus()