From 77366ad3e88ae3d8853d00014cee0ba3e3548afa Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Thu, 13 May 2010 13:55:11 +0200 Subject: fix: renumber keys of intersected array in function rrd_get_sources Since commit 95c70c919 [rewrite of type classes] cpu graphs of hosts running a 2.4 Linux kernel or Solaris were not displayed. Function rrd_get_sources must return an array with a consecutive index of numbers. --- type/Default.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'type') diff --git a/type/Default.class.php b/type/Default.class.php index e3997de..20b2745 100644 --- a/type/Default.class.php +++ b/type/Default.class.php @@ -171,7 +171,7 @@ class Type_Default { if (is_array($this->files) && count($this->files)>1) { # and must it be ordered? if (is_array($this->order)) { - $this->tinstances = array_intersect($this->order, $this->tinstances); + $this->tinstances = array_merge(array_intersect($this->order, $this->tinstances)); } # use tinstances as sources if(is_array($this->data_sources) && count($this->data_sources)>1) { -- cgit v1.1