diff options
author | Peter Wu | 2014-07-20 15:59:51 +0200 |
---|---|---|
committer | Peter Wu | 2014-07-20 23:23:24 +0200 |
commit | b7be6ba7ed302e18a313af4cbb2827b1fb62193a (patch) | |
tree | c262da09f5fe403ed5657e9ee84d5a22abb0acfb /layout | |
parent | Defensive programming: more urlencode/htmlentities (diff) | |
download | apt-panopticon_cgp-b7be6ba7ed302e18a313af4cbb2827b1fb62193a.zip apt-panopticon_cgp-b7be6ba7ed302e18a313af4cbb2827b1fb62193a.tar.gz apt-panopticon_cgp-b7be6ba7ed302e18a313af4cbb2827b1fb62193a.tar.bz2 apt-panopticon_cgp-b7be6ba7ed302e18a313af4cbb2827b1fb62193a.tar.xz |
Fix type confusion
index.php expects that collectd_hosts() always return an array for
array_diff. Since an empty array evaluates to FALSE anyway, do not
change the type and just return the empty array.
In base.php, if no files are returned, the loop is never called and
three variables are not initialized. Do it now.
Diffstat (limited to 'layout')
0 files changed, 0 insertions, 0 deletions