PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Images » Image_Graph » Bug #6921

Marker not drawn for points with Y value == 0

Details

Submitted2006-02-24 09:56 UTC
Fromdsier at g-point dot biz
Assignednosey
StatusClosed
PackageImage_Graph
PHP VersionIrrelevant
Roadmaps(Not assigned)

Comments

[2006-02-24 09:56 UTC] dsier at g-point dot biz

Description:
------------
In Plot.php:

if (((!is_object($this->_dataSelector)) ||
($this->_dataSelector->_select($point))) && ($point['Y'] != null))
{

should be:

if (((!is_object($this->_dataSelector)) ||
($this->_dataSelector->_select($point))) && ($point['Y'] !== null))
{

(== changed to !==)

This way datapoints with null value (graph breaks) would be ignored by markers, but datapoints with value == 0 would be drawn as expected.