Permalink
Browse files

MDL-29768 Language : fixed installation undefined debugstringids notice

  • Loading branch information...
nebgor committed Oct 18, 2011
1 parent f856216 commit 77c3e9d0c63524ce8e614d6edf63c44a2a8ce349
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/moodlelib.php
View
@@ -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;

0 comments on commit 77c3e9d

Please sign in to comment.