Browse files

Now GD is checked before displaying course overview graphs. MDL-7204

Backported from HEAD
  • Loading branch information...
1 parent 1040d76 commit e8e05625ec582052ee8a37123f5aca4c23470bd6 stronk7 committed Nov 4, 2006
Showing with 5 additions and 1 deletion.
  1. +5 −1 admin/report/courseoverview/index.php
View
6 admin/report/courseoverview/index.php
@@ -78,7 +78,11 @@
error(get_string('statsnodata'),$CFG->wwwroot.'/'.$CFG->admin.'/report/courseoverview/index.php');
}
- echo '<center><img src="'.$CFG->wwwroot.'/'.$CFG->admin.'/report/courseoverview/reportsgraph.php?time='.$time.'&report='.$report.'&numcourses='.$numcourses.'" /></center>';
+ if (empty($CFG->gdversion)) {
+ echo "<center>(".get_string("gdneed").")</center>";
+ } else {
+ echo '<center><img src="'.$CFG->wwwroot.'/'.$CFG->admin.'/report/courseoverview/reportsgraph.php?time='.$time.'&report='.$report.'&numcourses='.$numcourses.'" /></center>';
+ }
$table = new object();
$table->align = array('left','center','center','center');

0 comments on commit e8e0562

Please sign in to comment.