Commit d2e4494a authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix noisy log message from local_header_top_content and productionmode

See commit b453aa6c

 - when productionmode is true and
local_header_top_content is defined, php complains about $sitetop
being undefined.

Change-Id: I85d7c549e3dff8a3a4d01037e45e0d49fc0d36ec
Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent 403899f8
......@@ -404,7 +404,7 @@ EOF;
$sitetop = '<div class="error">' . get_string('notproductionsite', 'error') . '</div>';
}
if (function_exists('local_header_top_content')) {
$sitetop .= local_header_top_content();
$sitetop = (isset($sitetop) ? $sitetop : '') . local_header_top_content();
}
if (isset($sitetop)) {
$smarty->assign('SITETOP', $sitetop);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment