Permalink
Browse files

MDL-27824 course categories: change isset() to empty()

  • Loading branch information...
Rossiani Wijaya
Rossiani Wijaya committed Oct 12, 2012
1 parent 08af002 commit 929cdf06deeac8c773ce7c8daa057630c7d265f5
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/category.php
View
@@ -43,7 +43,7 @@
// MDL-27824 - This is a temporary fix until we have the proper
// way to check/initialize $CFG value.
// @todo MDL-35138 remove this temporary solution
-if (isset($CFG->coursesperpage)) {
+if (!empty($CFG->coursesperpage)) {
$defaultperpage = $CFG->coursesperpage;
} else {
$defaultperpage = 20;

0 comments on commit 929cdf0

Please sign in to comment.