git-svn-id: http://www.observium.org/svn/observer/trunk@2324 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-05-15 15:29:47 +00:00
parent 5483e5c4d8
commit d4a29c41a5
14 changed files with 66 additions and 125 deletions

View File

@@ -12,9 +12,8 @@ print_optionbar_start('', '');
echo("<span style='font-weight: bold;'>Graphs</span> &#187; ");
$sep = "";
$query = mysql_query("SELECT * FROM device_graphs WHERE device_id = '".$device['device_id']."'");
while ($graph = mysql_fetch_assoc($query))
foreach (dbFetchRows("SELECT * FROM device_graphs WHERE device_id = ?", array($device['device_id'])) as $graph)
{
$section = $config['graph_types']['device'][$graph['graph']]['section'];
$graph_enable[$section][$graph['graph']] = $graph['graph'];