only log errors to apache
authorAlan <alan@roojs.com>
Wed, 6 Sep 2023 06:18:16 +0000 (14:18 +0800)
committerAlan <alan@roojs.com>
Wed, 6 Sep 2023 06:18:16 +0000 (14:18 +0800)
Pman.php

index 6cbb587..c1a3824 100644 (file)
--- a/Pman.php
+++ b/Pman.php
@@ -1161,12 +1161,14 @@ class Pman extends HTML_FlexyFramework_Page
          || !empty($ff->database_is_readonly)
          || substr($act, 0, 7) === 'NOTICE-'
         ) {
+             if (substr($act, 0, 5) !== 'ERROR') {
+               return false;
+            }
             $str = $obj !== false ? "{$obj->tableName()}:{$obj->id} " : '';
             $de = ini_set('display_errors', 0);
             trigger_error("{$act} {$str} {$remarks}" , E_USER_NOTICE);
             ini_set('display_errors', $de );
-        
-              return false;
+            return false;
         }
         
         $au = $this->getAuthUser();