Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-35787 Mnet: fixed php strict standards warnings

  • Loading branch information...
commit 93288f22a9a33fad473751a291ed08a3b6752334 1 parent ccd90e7
@rajeshtaneja rajeshtaneja authored
Showing with 3 additions and 2 deletions.
  1. +2 −1  auth/mnet/auth.php
  2. +1 −1  mnet/service/enrol/course.php
View
3  auth/mnet/auth.php
@@ -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) {
View
2  mnet/service/enrol/course.php
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.