mirror of
https://github.com/moodle/moodle.git
synced 2025-04-18 23:15:38 +02:00
MDL-27597 fix invalid results of get_categories when shallow is false
This commit is contained in:
parent
3fdc622697
commit
618a7f91ec
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user