Skip to content

Commit

Permalink
MDL-27824 course categories: change isset() to empty()
Browse files Browse the repository at this point in the history
  • Loading branch information
Rossiani Wijaya committed Nov 8, 2012
1 parent 08af002 commit 929cdf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course/category.php
Expand Up @@ -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;
Expand Down

0 comments on commit 929cdf0

Please sign in to comment.