View unanswered posts | View active topics It is currently Sun Apr 28, 2024 4:58 pm



Reply to topic  [ 2 posts ] 
Issue with stripVOID in pData.class 
Author Message
pChart user
pChart user

Joined: Thu Feb 03, 2011 11:01 am
Posts: 4
Post Issue with stripVOID in pData.class
On line 98 of pData.class.php the "stripVOID" function is defined:
Code:
function stripVOID($Values)
    { $Result = ""; foreach($Values as $Key => $Value) { if ( $Value != VOID ) { $Result[] = $Value; } } return($Result); }

I suggest to change it to the following, because I got warnings in line 92 and 93 of pData.class.php (in the function addPoints) while adding a (automatically generated) series which contains only VOIDs.
Code:
function stripVOID($Values)
    { $Result = array(); foreach($Values as $Key => $Value) { if ( $Value != VOID ) { $Result[] = $Value; } } return($Result); }


Mon Apr 18, 2011 11:06 am
Profile
Site Admin
Site Admin
User avatar

Joined: Thu Dec 02, 2010 2:31 pm
Posts: 409
Location: France
Post Re: Issue with stripVOID in pData.class
Indeed, this is a bug, I should first check if we provide an array or a single value. This will be added in the next minor.

Thank you!
JD.


Mon Apr 18, 2011 11:10 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron