MDL-19342 - small fixes from Tatsuva Shirai + UTF-8 global straighten up
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
* @category core
|
||||
* @subpackage document_wrappers
|
||||
* @author Valery Fremaux [[email protected]] > 1.9
|
||||
* @contributor Tatsuva Shirai 20090530
|
||||
* @date 2008/03/31
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
|
||||
*
|
||||
@@ -154,6 +155,8 @@ function label_check_text_access($path, $itemtype, $this_id, $user, $group_id, $
|
||||
$r = get_record('label', 'id', $this_id);
|
||||
$module_context = get_record('context', 'id', $context_id);
|
||||
$cm = get_record('course_modules', 'id', $module_context->instanceid);
|
||||
if (empty($cm)) return false; // Shirai 20093005 - MDL19342 - course module might have been delete
|
||||
|
||||
$course_context = get_context_instance(CONTEXT_COURSE, $r->course);
|
||||
|
||||
//check if englobing course is visible
|
||||
|
||||
Reference in New Issue
Block a user