]> 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)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:19 +0000 (14:49 +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);
                }