Updated cron.php with the same change as cli.php got