MDL-78642 mod_assign: typecast portfolio button renderer return.

Internally the button return is nullable, which we need to account
for in the renderer.
This commit is contained in:
Paul Holden
2023-07-05 13:51:48 +01:00
parent 8dbb6183ff
commit d9a379a1c3
+2 -1
View File
@@ -1443,7 +1443,8 @@ class renderer extends \plugin_renderer_base {
];
$button->set_callback_options('assign_portfolio_caller', $portfolioparams, 'mod_assign');
$button->set_format_by_file($file);
return $button->to_html(PORTFOLIO_ADD_ICON_LINK);
return (string) $button->to_html(PORTFOLIO_ADD_ICON_LINK);
}
/**