Projekt

Allgemein

Profil

GX-Bug #67988 » filter_null_logs_from_log_files.patch

Mirko Janssen, 24.11.2020 13:01

Unterschiede anzeigen:

src/GXMainComponents/Controllers/HttpView/Admin/LoggingController.inc.php (date 1606218810287)
83 83
                unset($logs[count($logs) - 1]);
84 84
            }
85 85
        }
86
    
87
        $logs = array_filter($logs ?? [], static function($log){
88
            return $log !== "null\n" && $log !== "null";
89
        });
86 90
        
87
        return MainFactory::create('JsonHttpControllerResponse', ['logs' => array_reverse($logs ?? [])]);
91
        return MainFactory::create('JsonHttpControllerResponse', ['logs' => array_reverse($logs)]);
88 92
    }
89 93
    
90 94
    
(1-1/2)