PHP warning + question regarding cron error output
I'm getting this warning in the log file:
PHP Warning: Invalid argument supplied for foreach() in /usr/local/ispconfig/server/mods-available/monitor_core_module.inc.php on line 1118
Also, why does ISPConfig redirect error output from cron jobs (at least when using a URL (i.e. wget)?
Looking at the code, it's clear that the warning is due to the fact that there is no output from "mpt-status --autoload -n" on our server ... I think that the code should handle this situation, perhaps by wrapping the foreach with "if ($data['output'] !== '')".
|All times are GMT +2. The time now is 07:26.|
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.