Fix PHP notices see #1996

pull/2487/head
Julio 8 years ago
parent c396001724
commit e3e834cd4d
  1. 3
      main/course_home/3column.php
  2. 2
      main/inc/lib/course_home.lib.php

@ -18,6 +18,9 @@ $restore = isset($_GET['restore']) && $_GET['restore'] === 'yes' ? 'yes' : null;
$id = isset($_GET['id']) ? intval($_GET['id']) : null;
$TBL_ACCUEIL = Database::get_course_table(TABLE_TOOL_LIST);
$course_id = api_get_course_int_id();
$remove = isset($remove) ? $remove : false;
$destroy = isset($destroy) ? $destroy : false;
$askDelete = isset($askDelete) ? $askDelete : false;
// WORK with data post askable by admin of course
if (api_is_allowed_to_edit(null, true)) {

@ -214,7 +214,7 @@ class CourseHome
}
if (is_array($lnk)) {
foreach ($lnk as & $this_lnk) {
if ($tool['adminlink']) {
if (isset($tool['adminlink']) && $tool['adminlink']) {
$cell_content .= '<a href="'.$properties['adminlink'].'">'.
Display::return_icon('edit.gif', get_lang('Edit')).'</a>';
} else {

Loading…
Cancel
Save