Browse Source

Fixed #4: deprecation warnings in sessions.php

MOODLE_23_STABLE
Artem Andreev 13 years ago
parent
commit
a97c6d2b23
  1. 6
      sessions.php

6
sessions.php

@ -201,7 +201,7 @@ function construct_sessions_data_for_add($formdata) {
$sess->descriptionformat = $formdata->sdescription['format']; $sess->descriptionformat = $formdata->sdescription['format'];
$sess->timemodified = $now; $sess->timemodified = $now;
fill_groupid($formdata, &$sessions, $sess); fill_groupid($formdata, $sessions, $sess);
} }
$sdate += DAYSECS; $sdate += DAYSECS;
} else { } else {
@ -217,13 +217,13 @@ function construct_sessions_data_for_add($formdata) {
$sess->descriptionformat = $formdata->sdescription['format']; $sess->descriptionformat = $formdata->sdescription['format'];
$sess->timemodified = $now; $sess->timemodified = $now;
fill_groupid($formdata, &$sessions, $sess); fill_groupid($formdata, $sessions, $sess);
} }
return $sessions; return $sessions;
} }
function fill_groupid($formdata, $sessions, $sess) { function fill_groupid($formdata, &$sessions, $sess) {
if ($formdata->sessiontype == attforblock::SESSION_COMMON) { if ($formdata->sessiontype == attforblock::SESSION_COMMON) {
$sess = clone $sess; $sess = clone $sess;
$sess->groupid = 0; $sess->groupid = 0;

Loading…
Cancel
Save