From: Davide Franco Date: Thu, 31 Mar 2011 16:39:31 +0000 (+0200) Subject: bacula-web: php code cleanup in includes/bweb.inc.php X-Git-Tag: Release-5.2.1~333 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8c117c4b180b6d148bd4ac98fad2b6e54220aa0d;p=bacula%2Fbacula bacula-web: php code cleanup in includes/bweb.inc.php - Remove useless php code - Fixed some typo in GetDbSize() function - Removed useless require_once instruction - Removed copyright --- diff --git a/gui/bacula-web/includes/bweb.inc.php b/gui/bacula-web/includes/bweb.inc.php index 272ee6a437..cca09039c2 100644 --- a/gui/bacula-web/includes/bweb.inc.php +++ b/gui/bacula-web/includes/bweb.inc.php @@ -1,20 +1,4 @@ tpl->assign( 'catalog_current', $_POST['catalog_id'] ); $this->tpl->assign( 'catalogs', $this->bwcfg->Get_Catalogs() ); - }else - { - } } @@ -182,7 +163,7 @@ class Bweb extends DB { if(! PEAR::isError( $result ) ) { $db = $result->fetchRow( DB_FETCHMODE_ASSOC ); - $database_size =+ $db['dbsize']; + $database_size = $db['dbsize']; }else die( "Unable to get database size
" . $result->getMessage() );