diff --git a/scripts/jobs/cron_traffic.php b/scripts/jobs/cron_traffic.php index f613746a..5d141ebc 100644 --- a/scripts/jobs/cron_traffic.php +++ b/scripts/jobs/cron_traffic.php @@ -59,10 +59,14 @@ if (function_exists('pcntl_fork')) { } } else { - fwrite($debugHandler,"PHP compiled without pcntl. Not forking traffic-cron, this may take a long time!"); + if (extension_loaded('pcntl')) { + $msg = "PHP compiled with pcntl but pcntl_fork function is not available."; + } else { + $msg = "PHP compiled without pcntl."; + } + fwrite($debugHandler, $msg." Not forking traffic-cron, this may take a long time!"); } - require_once makeCorrectFile(dirname(__FILE__) . '/cron_traffic.inc.functions.php'); /**