Skip to content

Problem with empty sources array in parse_legend #122

Closed
@michaelsalmon

Description

I got the following error when trying to display an aggregated cpu graph:
PHP Warning: array_combine(): Both parameters should have at least 1 element

I changed line 342 of Base.class.php to:

if (count($sources) > 0) {
$this->legend = $this->legend + array_combine($sources, $sources);
}

This removed the error message but now I get a JSON response masquerading as a png.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions