fixed minor errors in graphs an license diag

This commit is contained in:
daniel 2018-11-07 13:33:07 +01:00
parent 9c143d1d00
commit 58aa334798
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ $rows = db_get_all_rows_in_table('tupdate_settings');
$settings = new StdClass; $settings = new StdClass;
foreach ($rows as $row) { foreach ($rows as $row) {
$settings->$row['key'] = $row['value']; $settings->{$row['key']} = $row['value'];
} }
echo '<script type="text/javascript">'; echo '<script type="text/javascript">';

View File

@ -1962,7 +1962,7 @@ function pandoraFlotArea( graph_id, values, legend,
if(series.data[j]){ if(series.data[j]){
var y = series.data[j][1]; var y = series.data[j][1];
var x = series.data[j][0] -1 ; var x = Math.round(series.data[j][0]) -1;
} }
} }