PDA

View Full Version : Litte error in include/classes/graph.inc.php


root_master
04-08-2006, 20:36
in Version 1.1 is a litte error in line 1010.

original

if(isset($data->count[$i])&&($data->count[$i]>0))

patch

if(isset($data) && isset($data->count[$i])&&($data->count[$i]>0))


if you installed php5 with hardening patch, the graphs and screens will be not shown.

Cu


Root_master


p.s. this error is in version 1.1.1 too

xaitax
06-08-2006, 14:50
We are running PHP 5.1.4 with Hardening-Patch 0.4.12, and do not have any issues on displaying graphs.

- xai

nullpt
13-03-2007, 20:00
Hello,

I'm being affected by this bug. I'm using Suhosin Patch 0.9.6.2.

The graphic is shown and the values are in the footer but there is no line drawing.

I've applied your patch but the problem don't seem to go away. I can see the following error in httpd-error.log:

[Tue Mar 13 18:00:46 2007] [error] [client 10.16.1.85] PHP Notice: Undefined offset: 1277 in /usr/local/www/apache22/data/include/classes/graph.inc.php on line 852, referer: http://10.16.3.92/history.php?period=86400&dec=0&inc=0&left=0&right=0&stime=yyyymmddhhmm&itemid=17498&action=showgraph&from=0


Any help is apreciated.
Regards