diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/Template/task_file/images.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/Template/task_file/images.php b/app/Template/task_file/images.php index 2143455d..9d20dea0 100644 --- a/app/Template/task_file/images.php +++ b/app/Template/task_file/images.php @@ -33,7 +33,11 @@ <span class="tooltip" title='<?= t('Uploaded: %s', $this->dt->datetime($file['date'])).'<br>'.t('Size: %s', $this->text->bytes($file['size'])) ?>'> <i class="fa fa-info-circle"></i> </span> - <?= t('Uploaded by %s', $file['user_name'] ?: $file['username']) ?> + <?php if (! empty($file['user_id'])): ?> + <?= t('Uploaded by %s', $file['user_name'] ?: $file['username']) ?> + <?php else: ?> + <?= t('Uploaded: %s', $this->dt->datetime($file['date'])) ?> + <?php endif ?> </div> </div> </div> |