Browse Source

user session import - make user key case insensitive.

nwp90-nwp90-allsessionsreport
Dan Marsden 4 years ago
parent
commit
8854851525
  1. 4
      classes/import/marksessions.php

4
classes/import/marksessions.php

@ -190,7 +190,7 @@ class marksessions {
if (!empty($mappingdata) && $mappingdata->userto !== 'id') { if (!empty($mappingdata) && $mappingdata->userto !== 'id') {
foreach ($validusers as $u) { foreach ($validusers as $u) {
if (!empty($u->{$mappingdata->userto})) { if (!empty($u->{$mappingdata->userto})) {
$users[$u->{$mappingdata->userto}] = $u; $users[strtolower($u->{$mappingdata->userto})] = $u;
} }
} }
} else { } else {
@ -214,7 +214,7 @@ class marksessions {
$mapping = $this->read_mapping_data($mappingdata); $mapping = $this->read_mapping_data($mappingdata);
// Get user. // Get user.
$extuser = $this->get_column_data($row, $mapping['user']); $extuser = strtolower($this->get_column_data($row, $mapping['user']));
if (empty($users[$extuser])) { if (empty($users[$extuser])) {
$a = new \stdClass(); $a = new \stdClass();
$a->extuser = $extuser; $a->extuser = $extuser;

Loading…
Cancel
Save