Skip to content

Commit

Permalink
MDL-24878 fixed missing returns in cli fatal_error rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Oct 27, 2010
1 parent 9bd2b1c commit 2b27ae7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/outputrenderers.php
Original file line number Diff line number Diff line change
Expand Up @@ -2615,12 +2615,14 @@ public function fatal_error($message, $moreinfourl, $link, $backtrace, $debuginf

if (debugging('', DEBUG_DEVELOPER)) {
if (!empty($debuginfo)) {
$this->notification($debuginfo, 'notifytiny');
$output .= $this->notification($debuginfo, 'notifytiny');
}
if (!empty($backtrace)) {
$this->notification('Stack trace: ' . format_backtrace($backtrace, true), 'notifytiny');
$output .= $this->notification('Stack trace: ' . format_backtrace($backtrace, true), 'notifytiny');
}
}

return $output;
}

/**
Expand Down

0 comments on commit 2b27ae7

Please sign in to comment.