Skip to content

Commit

Permalink
Bug #5, fix for "dummy" User account ~ batch = 0 [iet:8853003][ci s…
Browse files Browse the repository at this point in the history
…kip]
  • Loading branch information
nfreear committed May 8, 2017
1 parent f7e0bcc commit 0c2b7ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion db/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ protected static function getUserDummy($username)
'lastname' => null,
'email' => null,
'timecreated'=> time(),
'batch' => 0,
'x_is_dummy' => true,
];
}
Expand Down Expand Up @@ -242,7 +243,7 @@ public static function getSurveyUrls($profile)

$survey_urls = $CFG->auth_ouopenid_survey_urls;

$batch = $profile->batch;
$batch = isset($profile->batch) ? $profile->batch : 0;
if (! isset($survey_urls[ $batch ])) {
self::debug([ __FUNCTION__, 'error', ]);
}
Expand Down

0 comments on commit 0c2b7ce

Please sign in to comment.