mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
BUGFIX: $graph[0] -> $graph["graph"]
git-svn-id: http://www.observium.org/svn/observer/trunk@2032 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -316,11 +316,11 @@ while ($device = mysql_fetch_assoc($device_query))
|
|||||||
$query = mysql_query("SELECT `graph` FROM `device_graphs` WHERE `device_id` = '".$device['device_id']."'");
|
$query = mysql_query("SELECT `graph` FROM `device_graphs` WHERE `device_id` = '".$device['device_id']."'");
|
||||||
while ($graph = mysql_fetch_assoc($query))
|
while ($graph = mysql_fetch_assoc($query))
|
||||||
{
|
{
|
||||||
if (!isset($graphs[$graph[0]]))
|
if (!isset($graphs[$graph["graph"]]))
|
||||||
{
|
{
|
||||||
mysql_query("DELETE FROM `device_graphs` WHERE `device_id` = '".$device['device_id']."' AND `graph` = '".$graph[0]."'");
|
mysql_query("DELETE FROM `device_graphs` WHERE `device_id` = '".$device['device_id']."' AND `graph` = '".$graph["graph"]."'");
|
||||||
} else {
|
} else {
|
||||||
$oldgraphs[$graph[0]] = TRUE;
|
$oldgraphs[$graph["graph"]] = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -368,4 +368,4 @@ unset($config); ### Remove this for testing
|
|||||||
|
|
||||||
#print_r(get_defined_vars());
|
#print_r(get_defined_vars());
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
Reference in New Issue
Block a user