Fix PHP error

remotes/angel/1.11.x
jmontoyaa 8 years ago
parent 4872fdc1bf
commit 17eec7833d
  1. 10
      main/cron/import_csv.php
  2. 2
      main/inc/lib/groupmanager.lib.php

@ -716,7 +716,7 @@ class ImportCsv
$externalSessionId = null;
if (isset($row['external_sessionID'])) {
$externalSessionId = $row['external_sessionID'];
$sessionId = SessionManager::get_session_id_from_original_id(
$sessionId = SessionManager::getSessionIdFromOriginalId(
$externalSessionId,
$this->extraFieldIdNameList['session']
);
@ -1127,7 +1127,7 @@ class ImportCsv
$chamiloSessionId = null;
if (!empty($externalSessionId)) {
$chamiloSessionId = SessionManager::get_session_id_from_original_id(
$chamiloSessionId = SessionManager::getSessionIdFromOriginalId(
$externalSessionId,
$this->extraFieldIdNameList['session']
);
@ -1205,7 +1205,7 @@ class ImportCsv
$chamiloSessionId = null;
if (!empty($externalSessionId)) {
$chamiloSessionId = SessionManager::get_session_id_from_original_id(
$chamiloSessionId = SessionManager::getSessionIdFromOriginalId(
$externalSessionId,
$this->extraFieldIdNameList['session']
);
@ -1264,7 +1264,7 @@ class ImportCsv
$chamiloSessionId = null;
if (!empty($externalSessionId)) {
$chamiloSessionId = SessionManager::get_session_id_from_original_id(
$chamiloSessionId = SessionManager::getSessionIdFromOriginalId(
$externalSessionId,
$this->extraFieldIdNameList['session']
);
@ -1359,7 +1359,7 @@ class ImportCsv
// Looping the sessions.
foreach ($sessions as $session) {
if (!empty($session['SessionID'])) {
$sessionId = SessionManager::get_session_id_from_original_id(
$sessionId = SessionManager::getSessionIdFromOriginalId(
$session['SessionID'],
$this->extraFieldIdNameList['session']
);

@ -1621,7 +1621,7 @@ class GroupManager
if (self::can_user_subscribe($user_id, $group_id, false)) {
$sql = "INSERT INTO " . $table_group_tutor . " (c_id, user_id, group_id)
VALUES ('$course_id', '" . $user_id . "', '" . $group_id . "')";
$result &= Database::query($sql);
$result = Database::query($sql);
}
}

Loading…
Cancel
Save