From 77c3e9d0c63524ce8e614d6edf63c44a2a8ce349 Mon Sep 17 00:00:00 2001 From: Aparup Banerjee Date: Tue, 18 Oct 2011 11:19:43 +0800 Subject: [PATCH] MDL-29768 Language : fixed installation undefined debugstringids notice --- lib/moodlelib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index f993bab4020..34fb4ad1a32 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -6734,7 +6734,7 @@ function get_string($identifier, $component = '', $a = NULL) { $result = get_string_manager()->get_string($identifier, $component, $a); // Debugging feature lets you display string identifier and component - if ($CFG->debugstringids && optional_param('strings', 0, PARAM_INT)) { + if (isset($CFG->debugstringids) && $CFG->debugstringids && optional_param('strings', 0, PARAM_INT)) { $result .= ' {' . $identifier . '/' . $component . '}'; } return $result;