Skip to content

Commit

Permalink
fixed warning
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Mar 18, 2006
1 parent 884dc78 commit a4b3fc9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions my/overview.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?php
<?php // $Id$

require_once('../config.php');
require_once($CFG->dirroot.'/course/lib.php');

require_once(dirname(dirname(__FILE__)).'/config.php');
require_once(dirname(dirname(__FILE__)).'/course/lib.php');
require_login();

$courses = get_my_courses($USER->id);
Expand All @@ -12,7 +13,7 @@
}

foreach ($courses as $course) {
if (array_key_exists($course->id,$USER->timeaccess)) {
if (isset($USER->timeaccess) && array_key_exists($course->id,$USER->timeaccess)) {
$courses[$course->id]->lastaccess = $USER->timeaccess[$course->id];
} else {
$courses[$course->id]->lastaccess = 0;
Expand Down

0 comments on commit a4b3fc9

Please sign in to comment.