Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

Backported from HEAD
  • Loading branch information...
commit e8e05625ec582052ee8a37123f5aca4c23470bd6 1 parent 1040d76
stronk7 authored
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');
Please sign in to comment.
Something went wrong with that request. Please try again.