Fix error log

pull/2487/head
jmontoyaa 10 years ago
parent 92e9ae62a9
commit 8662ac0fee
  1. 11
      main/install/install.lib.php

@ -2274,7 +2274,6 @@ function fixIds(EntityManager $em)
$sql = "SELECT * FROM c_item_property WHERE c_id = $courseId";
$result = $connection->fetchAll($sql);
foreach ($result as $item) {
$sessionId = intval($item['session_id']);
$groupId = intval($item['to_group_id']);
@ -2330,13 +2329,13 @@ function fixIds(EntityManager $em)
error_log($sql);
$connection->executeQuery($sql);
}
}
if ($debug) {
// Print a status in the log once in a while
error_log("Process item #$counter/$totalCourse");
}
$counter++;
if ($debug) {
// Print a status in the log once in a while
error_log("Course process #$counter/$totalCourse");
}
$counter++;
}
if ($debug) {

Loading…
Cancel
Save