From: stronk7 Date: Mon, 30 Jul 2007 23:42:16 +0000 (+0000) Subject: search cron was killing the rest of cron tasks! X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b595c18ccaac9cda3d885feb8e99dfcdd9b9e1d7;p=moodle.git search cron was killing the rest of cron tasks! Merged from MOODLE_18_STABLE --- 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 +?>