MDL-13925 Was not handling adding subcategories properly. Thanks to Dennis Protzek for the patch.
MDL-13925
Was not handling adding subcategories properly. Thanks to Dennis Protzek for the patch.

Merged from STABLE_19

dilawar/moodle