From 37a36275d4554ec7e10064d0a72b3a0cf01282c3 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 9 May 2008 19:23:48 +0000 Subject: [PATCH] - Modified patch #256509 by dropcube: report when an invalid cron key is used. --- cron.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cron.php b/cron.php index e40dc2d9be8..cc6f4bffca4 100644 --- a/cron.php +++ b/cron.php @@ -10,4 +10,7 @@ include_once './includes/bootstrap.inc'; drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); if (isset($_GET['cron_key']) && variable_get('cron_key', 'drupal') == $_GET['cron_key']) { drupal_cron_run(); -} \ No newline at end of file +} +else { + watchdog('cron', 'Cron did not run because an invalid key used.', array(), WATCHDOG_NOTICE); +}