Skip to content
Browse files

Another fix for getting all fields for all courses - in blocks_get_co…

…urses_using_block_by_id
  • Loading branch information...
1 parent d13e627 commit 61f779597d2db5f2c5f073d992c71622d05f8a4a mjollnir_ committed Nov 22, 2004
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/blocklib.php
View
2 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);

0 comments on commit 61f7795

Please sign in to comment.
Something went wrong with that request. Please try again.