Error message:
defined(@array) is deprecated at /var/www/mrtg/mrtg-rrd.cgi line 490.
\t(Maybe you should just omit the defined()?)
Just omiting 'defined' key won't work, once the array is also empty, generating another error.
By these means, I changed lines 500, 925 and 938 with conditions testing the var and the arrays, like this:
if ( $directories{$dir}{subdir} && @{$directories{$dir}{subdir}}) {
It works, but not sure if this is the proper way of handling this.
Error message: defined(@array) is deprecated at /var/www/mrtg/mrtg-rrd.cgi line 490. \t(Maybe you should just omit the defined()?)
Just omiting 'defined' key won't work, once the array is also empty, generating another error.
By these means, I changed lines 500, 925 and 938 with conditions testing the var and the arrays, like this: if ( $directories{$dir}{subdir} && @{$directories{$dir}{subdir}}) {
It works, but not sure if this is the proper way of handling this.