Permalink
Browse files

MDL-35787 Mnet: fixed php strict standards warnings

  • Loading branch information...
1 parent 562dbe4 commit add569ebe0ef324599c5435cc50530db4d99f55e @rajeshtaneja rajeshtaneja committed Oct 4, 2012
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;

0 comments on commit add569e

Please sign in to comment.