Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'MDL-60300-m33' of https://github.com/NeillM/moodle into…
… MOODLE_33_STABLE
  • Loading branch information
stronk7 committed Oct 10, 2017
2 parents 91bc1d0 + 6bc6c40 commit 795c563
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mod/quiz/attemptlib.php
Expand Up @@ -2325,15 +2325,16 @@ public function fire_attempt_reviewed_event() {
* This function should be used only when web services are being used.
*
* @param int $time time stamp
* @return boolean false if the field is not updated becase web services aren't being used.
* @return boolean false if the field is not updated because web services aren't being used.
* @since Moodle 3.2
*/
public function set_offline_modified_time($time) {
global $DB;

// Update the timemodifiedoffline field only if web services are being used.
if (WS_SERVER) {
$attemptobj->attempt->timemodifiedoffline = $time;
$this->attempt->timemodifiedoffline = $time;
return true;
}
return false;
}
Expand Down

0 comments on commit 795c563

Please sign in to comment.