MDL-51856 tool_lp: Fixing PHPUnit notices and plan errors

This commit is contained in:
Frederic Massart
2016-04-18 10:58:36 +08:00
parent e9831af3c2
commit 3a4c71dc22
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1337,7 +1337,7 @@ class external extends external_api {
$includerelated = new external_value(
PARAM_BOOL,
'Include or not related competencies',
VALUE_OPTIONAL,
VALUE_DEFAULT,
false
);
+2 -2
View File
@@ -87,8 +87,8 @@ class plans_page implements renderable, templatable {
if ($this->plans) {
foreach ($this->plans as $plan) {
$record = $plan->to_record();
$record['statusname'] = $plan->get_statusname();
$record['usercanupdate'] = $plan->can_update();
$record->statusname = $plan->get_statusname();
$record->usercanupdate = $plan->can_update();
$data->plans[] = $record;
}
}