From a97c6d2b23cfd027eb0b9309037d658cbdb574ca Mon Sep 17 00:00:00 2001 From: Artem Andreev Date: Fri, 21 Oct 2011 16:11:13 +0400 Subject: [PATCH] Fixed #4: deprecation warnings in sessions.php --- sessions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sessions.php b/sessions.php index c1bd7d6..e2dd833 100644 --- a/sessions.php +++ b/sessions.php @@ -201,7 +201,7 @@ function construct_sessions_data_for_add($formdata) { $sess->descriptionformat = $formdata->sdescription['format']; $sess->timemodified = $now; - fill_groupid($formdata, &$sessions, $sess); + fill_groupid($formdata, $sessions, $sess); } $sdate += DAYSECS; } else { @@ -217,13 +217,13 @@ function construct_sessions_data_for_add($formdata) { $sess->descriptionformat = $formdata->sdescription['format']; $sess->timemodified = $now; - fill_groupid($formdata, &$sessions, $sess); + fill_groupid($formdata, $sessions, $sess); } return $sessions; } -function fill_groupid($formdata, $sessions, $sess) { +function fill_groupid($formdata, &$sessions, $sess) { if ($formdata->sessiontype == attforblock::SESSION_COMMON) { $sess = clone $sess; $sess->groupid = 0;