Added another parameter to avoid a error in the set_coursemodule_visible call