]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/ttReportHelper.class.php
Conditional printing of only not null note rows.
[timetracker.git] / WEB-INF / lib / ttReportHelper.class.php
index 545fcc465dd4a6de3c71b8198f1d71b31aab386f..5e8f799f0cdd034fd4239b270ff0187e7c35fb87 100644 (file)
@@ -956,7 +956,7 @@ class ttReportHelper {
           if ($options['show_timesheet'])
             $body .= '<td style="'.$cellRightAligned.'">'.htmlspecialchars($record['timesheet']).'</td>';
           $body .= '</tr>';
-          if ($options['show_note']) {
+          if ($options['show_note'] && $record['note']) {
             $body .= '<tr style="'.$row_style.'">';
             $body .= '<td style="'.$cellRightAligned.'">'.$i18n->get('label.note').':</td>';
             $body .= '<td colspan="'.$colspan.'">'.$record['note'].'</td>';