Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

Commit

Permalink
Fix for array_merge in php8. Fixes #274
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikesch-mp committed Jul 14, 2021
1 parent b3d719b commit d59432b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Grafana/Helpers/Timeranges.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,6 @@ public function getTimerangeMenu($timerange = "", $timerangeto = "")

public static function getTimeranges()
{
return call_user_func_array('array_merge', self::$timeRanges);
return call_user_func_array('array_merge', array_values(self::$timeRanges));
}
}

0 comments on commit d59432b

Please sign in to comment.