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-Url: https://git.sur5r.net/?a=commitdiff_plain;h=14131344e8a0dd3c6983b89ed214cc84f3cc668b;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() );