From: skodak Date: Sat, 19 Apr 2008 09:52:45 +0000 (+0000) Subject: MDL-14428 fixed tag cron warning; merged from MOODLE_19_STABLE X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=423a71b6d580d7a90a73b853e5cf74ca2fa64bfa;p=moodle.git MDL-14428 fixed tag cron warning; merged from MOODLE_19_STABLE --- diff --git a/tag/lib.php b/tag/lib.php index 064a58b020..9d91cee794 100644 --- a/tag/lib.php +++ b/tag/lib.php @@ -699,7 +699,9 @@ function tag_compute_correlations($min_correlation=2) { global $CFG; - $all_tags = get_records_list('tag'); + if (!$all_tags = get_records_list('tag')) { + return; + } $tag_correlation_obj = new object(); foreach($all_tags as $tag) {