diff --git a/lib/conditionlib.php b/lib/conditionlib.php
index 550d49a..5886d4e 100644
--- a/lib/conditionlib.php
+++ b/lib/conditionlib.php
@@ -269,7 +269,7 @@ class condition_info_section extends condition_info_base {
array($this->item->groupingid, $userid));
if (!$gotit && !has_capability('moodle/site:accessallgroups', $context, $userid)) {
$available = false;
- $information .= get_string('groupingnoaccess', 'condition');
+ $information .= ''.get_string('groupingnoaccess', 'condition').'';
}
} else {
// Request is for current user - use cache
@@ -298,7 +298,7 @@ class condition_info_section extends condition_info_base {
$usergroupings = $CONDITIONLIB_PRIVATE->groupingscache[$this->item->course];
if ($usergroupings !== true && !array_key_exists($this->item->groupingid, $usergroupings)) {
$available = false;
- $information .= get_string('groupingnoaccess', 'condition');
+ $information .= ''.get_string('groupingnoaccess', 'condition').'';
}
}
}
@@ -605,9 +605,9 @@ abstract class condition_info_base {
if (empty($modinfo->cms[$cmid])) {
continue;
}
- $information .= get_string(
+ $information .= ''.get_string(
'requires_completion_' . $expectedcompletion,
- 'condition', $modinfo->cms[$cmid]->name) . ' ';
+ 'condition', $modinfo->cms[$cmid]->name) . ' ';
}
}
@@ -626,7 +626,7 @@ abstract class condition_info_base {
} else {
$string = 'range';
}
- $information .= get_string('requires_grade_'.$string, 'condition', $minmax->name).' ';
+ $information .= ''.get_string('requires_grade_'.$string, 'condition', $minmax->name).' ';
}
}
@@ -677,19 +677,19 @@ abstract class condition_info_base {
if ($this->item->availablefrom && $this->item->availableuntil) {
if ($shortfrom && $shortuntil && $daybeforeuntil == $this->item->availablefrom) {
- $information .= get_string('requires_date_both_single_day', 'condition',
- self::show_time($this->item->availablefrom, true));
+ $information .= ''.get_string('requires_date_both_single_day', 'condition',
+ self::show_time($this->item->availablefrom, true)).'';
} else {
- $information .= get_string('requires_date_both', 'condition', (object)array(
+ $information .= ''.get_string('requires_date_both', 'condition', (object)array(
'from' => self::show_time($this->item->availablefrom, $shortfrom),
- 'until' => self::show_time($displayuntil, $shortuntil)));
+ 'until' => self::show_time($displayuntil, $shortuntil))).'';
}
} else if ($this->item->availablefrom) {
- $information .= get_string('requires_date', 'condition',
- self::show_time($this->item->availablefrom, $shortfrom));
+ $information .= ''.get_string('requires_date', 'condition',
+ self::show_time($this->item->availablefrom, $shortfrom)).'';
} else if ($this->item->availableuntil) {
- $information .= get_string('requires_date_before', 'condition',
- self::show_time($displayuntil, $shortuntil));
+ $information .= ''.get_string('requires_date_before', 'condition',
+ self::show_time($displayuntil, $shortuntil)).'';
}
$information = trim($information);
@@ -789,9 +789,9 @@ abstract class condition_info_base {
}
if (!$thisisok) {
$available = false;
- $information .= get_string(
+ $information .= ''.get_string(
'requires_completion_' . $expectedcompletion,
- 'condition', $modinfo->cms[$cmid]->name) . ' ';
+ 'condition', $modinfo->cms[$cmid]->name) . ' ';
}
}
}
@@ -817,7 +817,7 @@ abstract class condition_info_base {
} else {
$string = 'range';
}
- $information .= get_string('requires_grade_' . $string, 'condition', $minmax->name) . ' ';
+ $information .= ''.get_string('requires_grade_' . $string, 'condition', $minmax->name) . ' ';
}
}
}
@@ -827,9 +827,9 @@ abstract class condition_info_base {
if (time() < $this->item->availablefrom) {
$available = false;
- $information .= get_string('requires_date', 'condition',
+ $information .= ''.get_string('requires_date', 'condition',
self::show_time($this->item->availablefrom,
- self::is_midnight($this->item->availablefrom)));
+ self::is_midnight($this->item->availablefrom))).'';
}
}