diff options
author | Matthias Viehweger | 2012-10-20 00:44:28 +0200 |
---|---|---|
committer | Matthias Viehweger | 2012-10-20 00:44:28 +0200 |
commit | cd575dd5f45ddaa0871b31c36c46c675b484196f (patch) | |
tree | 7ad692211674402ef89b1be5180f6f8b71cca114 /inc/collectd.inc.php | |
parent | change whitespace, indentation or line-breaks (diff) | |
download | apt-panopticon_cgp-cd575dd5f45ddaa0871b31c36c46c675b484196f.zip apt-panopticon_cgp-cd575dd5f45ddaa0871b31c36c46c675b484196f.tar.gz apt-panopticon_cgp-cd575dd5f45ddaa0871b31c36c46c675b484196f.tar.bz2 apt-panopticon_cgp-cd575dd5f45ddaa0871b31c36c46c675b484196f.tar.xz |
explicitely defined undefined variables
this should keep the error.log clean
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); |