Pman.php
authorAlan Knowles <alan@roojs.com>
Wed, 9 Dec 2015 07:10:16 +0000 (15:10 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 9 Dec 2015 07:10:16 +0000 (15:10 +0800)
Pman.php

index f2eb457..e54a944 100644 (file)
--- a/Pman.php
+++ b/Pman.php
@@ -470,7 +470,9 @@ class Pman extends HTML_FlexyFramework_Page
     
     function jerror($type, $str, $errors=array(), $content_type = false) // standard error reporting..
     {
-        $this->addEvent($type, false, $str);
+        if ($type !== false) {
+            $this->addEvent($type, false, $str);
+        }
          
         $cli = HTML_FlexyFramework::get()->cli;
         if ($cli) {