diff --git a/inc/view_attachment_functions.inc.php b/inc/view_attachment_functions.inc.php index 39dee973..2f787f54 100644 --- a/inc/view_attachment_functions.inc.php +++ b/inc/view_attachment_functions.inc.php @@ -45,6 +45,10 @@ function mfh_listAttachments($attachments='', $reply=0, $is_staff) echo ' '.$hesklang['image'].' '; + $download_path = ''; + if ($is_staff) { + $download_path = '../'; + } echo ' @@ -78,11 +82,14 @@ function mfh_listAttachments($attachments='', $reply=0, $is_staff) echo '
'; /* Can edit and delete tickets? */ - if ($is_staff && $can_edit && $can_delete) - { - echo ' '; + $download_path = ''; + if ($is_staff) { + $download_path = '../'; + if ($can_edit && $can_delete) { + echo ' '; + } } - echo ' ';