summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-05-09 19:23:48 +0000
committerDries Buytaert <dries@buytaert.net>2008-05-09 19:23:48 +0000
commit37a36275d4554ec7e10064d0a72b3a0cf01282c3 (patch)
tree1687c0eaca564620091e4be8bb0239c2089b9e56
parent0aec71aa560b4bfd7a5f56d75adc6b8bfc46e307 (diff)
downloadbrdo-37a36275d4554ec7e10064d0a72b3a0cf01282c3.tar.gz
brdo-37a36275d4554ec7e10064d0a72b3a0cf01282c3.tar.bz2
- Modified patch #256509 by dropcube: report when an invalid cron key is used.
-rw-r--r--cron.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/cron.php b/cron.php
index e40dc2d9b..cc6f4bffc 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);
+}