]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Fixed php code bug
authorDavide Franco <bacula-dev@dflc.ch>
Tue, 5 Jul 2011 06:24:21 +0000 (08:24 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Tue, 2 Aug 2011 09:56:22 +0000 (11:56 +0200)
gui/bacula-web/includes/bweb.inc.php

index 767aab7e56551b5f0d85cf2626b3d4b33f1db702..10bea913636915b1b97a78834c3a228776ecd637 100644 (file)
@@ -65,10 +65,10 @@ class Bweb extends DB
                $this->db_link = $this->connect( $dsn, $options );
         
                if (DB::isError($this->db_link)) {
-                       $this->TriggerDBError("Unable to connect to catalog', $this->db_link);
+                       $this->TriggerDBError('Unable to connect to catalog', $this->db_link);
                }else {
                        $this->driver = $dsn['phptype'];                            
-            register_shutdown_function(array(&$this,'close') );
+                       register_shutdown_function(array(&$this,'close') );
                        $this->db_link->setFetchMode(DB_FETCHMODE_ASSOC);
                }