From:
[email protected]
Package: cacti
Version: 0.8.5a-4
Severity: normal
Resulting png's look like this:
<br />
<b>Notice</b>: Undefined variable: graph_item_types in <b>/usr/share/cacti/lib/graph_variables.php</b> on line <b>153</b><br />
( Lot's of those... )
<b>Notice</b>: Undefined variable: graph_item_types in <b>/usr/share/cacti/lib/graph_variables.php</b> on line <b>153</b><br />
<89>PNG
^Z
( Rest of this PNG )
One solution seems to be adding 'global $graph_item_types;' declaration before '$graph_item_types' is used, like this:
for ($t=0;($t<count($graph_items));$t++) {
+ global $graph_item_types;
if ((ereg("(AREA|STACK|LINE[123])", $graph_item_types{$graph_items[$t]["graph_type_id"]})) && (!empty($graph_items[$t]["data_template_rrd_id"]))) {
regards,
-- System Information
Debian Release: 3.0
Kernel Version: Linux forumakad 2.4.26-bsd21i #1 Mon May 31 07:56:17 CEST 2004 i686 unknown
--
To UNSUBSCRIBE, email to
[email protected]
with a subject of "unsubscribe". Trouble? Contact
[email protected]
--- SoupGate-Win32 v1.05
* Origin: you cannot sedate... all the things you hate (1:229/2)