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-06 09:04:54 +01:00
parent b509652427
commit 882d676a66
+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);
}
/**