MDL-29768 Language : fixed installation undefined debugstringids notice
authorAparup Banerjee <aparup@moodle.com>
Tue, 18 Oct 2011 03:19:43 +0000 (11:19 +0800)
committerAparup Banerjee <aparup@moodle.com>
Tue, 18 Oct 2011 03:19:43 +0000 (11:19 +0800)
lib/moodlelib.php

index f993bab..34fb4ad 100644 (file)
@@ -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;