Skip to content

Commit

Permalink
Another fix for getting all fields for all courses - in blocks_get_co…
Browse files Browse the repository at this point in the history
…urses_using_block_by_id
  • Loading branch information
mjollnir_ committed Nov 22, 2004
1 parent d13e627 commit 61f7795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/blocklib.php
Expand Up @@ -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);
Expand Down

0 comments on commit 61f7795

Please sign in to comment.