--- ../bacula-web/classes.inc 2006-03-21 16:20:14.000000000 -0500 +++ ../bacula-web/classes.inc 2006-03-21 16:18:09.000000000 -0500 @@ -153,20 +153,11 @@ } else return 0; + $dbsize->free(); } else if ( $this->driver == "pgsql") { - $dbsize = $this->link->query("select pg_database_size('$this->dbs_name')") - or die ("classes.inc: Error query: 4"); - if (PEAR::isError($dbsize)) - die($dbsize->getMessage()); - if ( $dbsize->numRows() ) { - while ( $res = $dbsize->fetchRow() ) - $database_size += $res[0]; - } - else - return 0; + $database_size = 1; } - $dbsize->free(); return $database_size; }