Menu

#27 PHP notices generated in pData::AddPoint()

open
nobody
None
5
2014-08-24
2008-12-19
No

When calling AddPoint (using PHP 5.3), notices are generated. The exact message is:

Notice: Uninitialized string offset: 0 in D:\boxuk\wwwroot\cameron\amaxus4\vendor\pchart\1.27d\pChart\pData.class on line 127

I've investigated the issue and the issue is very simple. In pData.class, $this->Data is used as an array but is for some reason initialised as a string on line 55. This causes the notice when $this->Data is iterated through. Change this initialisation to "$this->Data = array();" and the problem is solved.

Cheers,
Cameron

Discussion


Log in to post a comment.

MongoDB Logo MongoDB