fix potential bug with erroneous space in collectd graphs

git-svn-id: http://www.observium.org/svn/observer/trunk@1330 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2010-07-10 12:09:21 +00:00
parent fc8c8cf3ed
commit d3c2f2b5e4
3 changed files with 4 additions and 3 deletions

View File

@@ -193,6 +193,7 @@ $device_types = array('server','network','firewall','workstation','printer','pow
$config['version'] = "0.10";
$config['rrdgraph_def_text'] = str_replace(" ", " ", $config['rrdgraph_def_text']);
$config['rrd_opts_array'] = explode(" ", trim($config['rrdgraph_def_text']));
if(!$config['mibdir'])
@@ -217,7 +218,7 @@ if(isset($_SERVER['HTTPS'])) {
### Connect to database
$observer_link = mysql_pconnect($config['db_host'], $config['db_user'], $config['db_pass']);
if (!$observer_link) {
echo "<h2>Observer MySQL Error</h2>";
echo "<h2>MySQL Error</h2>";
echo mysql_error();
die;
}