Skip to content

Commit

Permalink
Now GD is checked before displaying course overview graphs. MDL-7204
Browse files Browse the repository at this point in the history
Merged from MOODLE_17_STABLE
  • Loading branch information
stronk7 committed Nov 4, 2006
1 parent 7fb0bc8 commit 981b3ae
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion admin/report/courseoverview/index.php
Expand Up @@ -82,7 +82,11 @@
notify(get_string('statsnodata'));

} else {
echo '<div align="center"><img src="'.$CFG->wwwroot.'/'.$CFG->admin.'/report/courseoverview/reportsgraph.php?time='.$time.'&report='.$report.'&numcourses='.$numcourses.'" /></div>';
if (empty($CFG->gdversion)) {
echo '<div align="center">(' . get_string("gdneed") .')</div>';
} else {
echo '<div align="center"><img src="'.$CFG->wwwroot.'/'.$CFG->admin.'/report/courseoverview/reportsgraph.php?time='.$time.'&report='.$report.'&numcourses='.$numcourses.'" /></div>';
}

$table = new StdClass;
$table->align = array('left','center','center','center');
Expand Down

0 comments on commit 981b3ae

Please sign in to comment.