MDL-24878 fixed missing returns in cli fatal_error rendering
authorPetr Skoda <skodak@moodle.org>
Wed, 27 Oct 2010 07:48:19 +0000 (07:48 +0000)
committerPetr Skoda <skodak@moodle.org>
Wed, 27 Oct 2010 07:48:19 +0000 (07:48 +0000)
lib/outputrenderers.php

index bf6a3f4..1f38167 100644 (file)
@@ -2615,12 +2615,14 @@ class core_renderer_cli extends core_renderer {
 
         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;
     }
 
     /**