check if file in dumplog() is not empty

This commit is contained in:
Uwe Steinmann 2015-08-09 07:27:47 +02:00
parent 1cf79c6cbe
commit 8ca8e17047

View File

@ -134,7 +134,7 @@ function dumplog($version, $type, $logs, $indent) { /* {{{ */
echo $indent." <attr name=\"status\">".$a['status']."</attr>\n";
echo $indent." <attr name=\"comment\">".wrapWithCData($a['comment'])."</attr>\n";
echo $indent." <attr name=\"date\" format=\"Y-m-d H:i:s\">".$a['date']."</attr>\n";
if($a['file']) {
if(!empty($a['file'])) {
$filename = $dms->contentDir . $document->getDir().'r'.(int) $a[$type2.'LogID'];
if(file_exists($filename)) {
echo $indent." <data length=\"".filesize($filename)."\"";