diff options
Diffstat (limited to 'inc/collectd.inc.php')
-rw-r--r-- | inc/collectd.inc.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/inc/collectd.inc.php b/inc/collectd.inc.php index 3aef6b8..3467667 100644 --- a/inc/collectd.inc.php +++ b/inc/collectd.inc.php | |||
@@ -130,10 +130,10 @@ function group_plugindata($plugindata) { | |||
130 | 130 | ||
131 | function plugin_sort($data) { | 131 | function plugin_sort($data) { |
132 | foreach ($data as $key => $row) { | 132 | foreach ($data as $key => $row) { |
133 | $pi[$key] = $row['pi']; | 133 | $pi[$key] = (isset($row['pi'])) ? $row['pi'] : null; |
134 | $c[$key] = $row['c']; | 134 | $c[$key] = (isset($row['c'])) ? $row['c'] : null; |
135 | $ti[$key] = $row['ti']; | 135 | $ti[$key] = (isset($row['ti'])) ? $row['ti'] : null; |
136 | $t[$key] = $row['t']; | 136 | $t[$key] = (isset($row['t'])) ? $row['t'] : null; |
137 | } | 137 | } |
138 | 138 | ||
139 | array_multisort($c, SORT_ASC, $pi, SORT_ASC, $t, SORT_ASC, $ti, SORT_ASC, $data); | 139 | array_multisort($c, SORT_ASC, $pi, SORT_ASC, $t, SORT_ASC, $ti, SORT_ASC, $data); |