MDL-9380 Adding a Resource of Type directory leads to SQL errors, patch by Andrew Schmadeke; merged from MOODLE_18_STABLE
MDL-9380 Adding a Resource of Type directory leads to SQL errors, patch by Andrew Schmadeke; merged from MOODLE_18_STABLE

dilawar/moodle