From b595c18ccaac9cda3d885feb8e99dfcdd9b9e1d7 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Mon, 30 Jul 2007 23:42:16 +0000 Subject: [PATCH] search cron was killing the rest of cron tasks! Merged from MOODLE_18_STABLE --- search/cron.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/search/cron.php b/search/cron.php index 841d51fe8c..75d6d86c75 100644 --- a/search/cron.php +++ b/search/cron.php @@ -16,7 +16,8 @@ require_once("$CFG->dirroot/search/lib.php"); if (empty($CFG->enableglobalsearch)) { - error('Global searching is not enabled.'); + mtrace('Global searching is not enabled.'); + return; } mtrace("
Starting cron...\n");
@@ -31,4 +32,4 @@
 
   mtrace("cron finished.
"); -?> \ No newline at end of file +?> -- 2.39.5