From 61f779597d2db5f2c5f073d992c71622d05f8a4a Mon Sep 17 00:00:00 2001 From: mjollnir_ Date: Mon, 22 Nov 2004 04:44:14 +0000 Subject: [PATCH] Another fix for getting all fields for all courses - in blocks_get_courses_using_block_by_id --- lib/blocklib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/blocklib.php b/lib/blocklib.php index 1fdaada0fcb..53137781d70 100644 --- a/lib/blocklib.php +++ b/lib/blocklib.php @@ -706,7 +706,7 @@ function blocks_get_courses_using_block_by_id($blockid) { $num = 0; - if ($courses = get_records("course")) { + if ($courses = get_records("course",false,false,false,'id,blockinfo')) { foreach($courses as $course) { $blocks = str_replace(":",",",$course->blockinfo); $blocksarr = explode(",",$blocks);