PHP notices generated in pData::AddPoint()
Status: Beta
Brought to you by:
ayashisunyday
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