Merge branch 'w51_MDL-36893_m23_mnetestrict' of git://github.com/skodak/moodle into...
authorDan Poltawski <dan@moodle.com>
Mon, 7 Jan 2013 05:53:29 +0000 (13:53 +0800)
committerDan Poltawski <dan@moodle.com>
Mon, 7 Jan 2013 05:53:29 +0000 (13:53 +0800)
mnet/lib.php

index 074b86a..1705221 100644 (file)
@@ -447,6 +447,7 @@ function mnet_update_sso_access_control($username, $mnet_host_id, $accessctrl) {
                 "SSO ACL: $accessctrl user '$username' from {$mnethost->name}");
     } else {
         // insert
+        $aclrecord = new stdClass();
         $aclrecord->username = $username;
         $aclrecord->accessctrl = $accessctrl;
         $aclrecord->mnet_host_id = $mnet_host_id;