Permalink
Browse files

Merge branch 'w36_MDL-35077_m23_stats' of git://github.com/skodak/moo…

…dle into MOODLE_23_STABLE
  • Loading branch information...
2 parents b9d2425 + 0a898cb commit 0cae56b42eb816ac29008f2ccf26ed686a9550b4 @stronk7 stronk7 committed Sep 3, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 report/stats/lib.php
View
@@ -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 0cae56b

Please sign in to comment.