Pman.php
authorEdward <edward@roojs.com>
Thu, 9 Aug 2018 06:48:47 +0000 (14:48 +0800)
committerEdward <edward@roojs.com>
Thu, 9 Aug 2018 06:48:47 +0000 (14:48 +0800)
Pman.php

index c1bae74..b964abc 100644 (file)
--- a/Pman.php
+++ b/Pman.php
@@ -449,7 +449,12 @@ class Pman extends HTML_FlexyFramework_Page
     function jerror($type, $str, $errors=array(), $content_type = false) // standard error reporting..
     {
         if ($type !== false) {
+            
             $this->addEvent($type, false, $str);
+            
+            if(!empty($errors)){
+                DB_DataObject::factory('Events')->writeEventLogExtra($errors);
+            }
         }
          
         $cli = HTML_FlexyFramework::get()->cli;