Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'w31_MDL-27597_m20_catlike' of git://github.com/skodak/m…

…oodle into MOODLE_20_STABLE
  • Loading branch information...
commit fcda2530265eba9e1b9f9cb3665380d5e3186ff3 2 parents 3728b69 + 56eff94
@stronk7 stronk7 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/datalib.php
View
2  lib/datalib.php
@@ -847,7 +847,7 @@ function get_categories($parent='none', $sort=NULL, $shallow=true) {
FROM {course_categories} cc
$ccjoin
JOIN {course_categories} ccp
- ON (cc.path LIKE ".$DB->sql_concat('ccp.path',"'%'").")
+ ON ((cc.parent = ccp.id) OR (cc.path LIKE ".$DB->sql_concat('ccp.path',"'/%'")."))
WHERE ccp.id=?
$sort";
$params = array($parent);
Please sign in to comment.
Something went wrong with that request. Please try again.