Dashlet: reset stats before getting the first one

fixes #766
This commit is contained in:
Thomas Gelf 2018-02-25 17:30:05 +01:00
parent c4e9f7a8b3
commit 29baa3698e
1 changed files with 1 additions and 0 deletions

View File

@ -181,6 +181,7 @@ abstract class Dashlet extends BaseElement
{
$result = '';
if (! empty($this->requiredStats)) {
reset($this->requiredStats);
$result .= $this->statSummary(current($this->requiredStats));
}