Skip to content

Commit

Permalink
MDL-35787 Mnet: fixed php strict standards warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajesh Taneja committed Oct 9, 2012
1 parent ccd90e7 commit 93288f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion auth/mnet/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,8 @@ function confirm_mnet_session($token, $remotepeer) {
$extra = $DB->get_records_sql($sql);

$keys = array_keys($courses);
$defaultrole = reset(get_archetype_roles('student'));
$studentroles = get_archetype_roles('student');
$defaultrole = reset($studentroles);
//$defaultrole = get_default_course_role($ccache[$shortname]); //TODO: rewrite this completely, there is no default course role any more!!!
foreach ($keys AS $id) {
if ($courses[$id]->visible == 0) {
Expand Down
2 changes: 1 addition & 1 deletion mnet/service/enrol/course.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@

// collapsible course summary
if (!empty($course->summary)) {
unset($options);
$options = new stdClass();
$options->trusted = false;
$options->para = false;
$options->filter = false;
Expand Down

0 comments on commit 93288f2

Please sign in to comment.