Browse files

MDL-35077 fix stats report navigation links

  • Loading branch information...
1 parent 9815783 commit 0a898cbc4687bdc2892b990d6fb866e4f1a3abb5 @skodak skodak committed Aug 28, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 report/stats/lib.php
View
4 report/stats/lib.php
@@ -36,7 +36,7 @@
*/
function report_stats_extend_navigation_course($navigation, $course, $context) {
global $CFG;
- if (!empty($CFG->enablestats)) {
+ if (empty($CFG->enablestats)) {
return;
}
if (has_capability('report/stats:view', $context)) {
@@ -54,7 +54,7 @@ function report_stats_extend_navigation_course($navigation, $course, $context) {
*/
function report_stats_extend_navigation_user($navigation, $user, $course) {
global $CFG;
- if (!empty($CFG->enablestats)) {
+ if (empty($CFG->enablestats)) {
return;
}
if (report_stats_can_access_user_report($user, $course)) {

0 comments on commit 0a898cb

Please sign in to comment.