]> git.mjollnir.org Git - moodle.git/commitdiff
search cron was killing the rest of cron tasks!
authorstronk7 <stronk7>
Mon, 30 Jul 2007 23:42:16 +0000 (23:42 +0000)
committerstronk7 <stronk7>
Mon, 30 Jul 2007 23:42:16 +0000 (23:42 +0000)
Merged from MOODLE_18_STABLE

search/cron.php

index 841d51fe8c7a3af636bfaa7c3577e714a08ac248..75d6d86c751060d12f04cbf4c022f06cf965495b 100644 (file)
@@ -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("<pre>Starting cron...\n");
@@ -31,4 +32,4 @@
 
   mtrace("cron finished.</pre>");
 
-?>
\ No newline at end of file
+?>