diff --git a/core/functions/actions/mutate_content.php b/core/functions/actions/mutate_content.php index 7f28e366f0..1b210331cf 100644 --- a/core/functions/actions/mutate_content.php +++ b/core/functions/actions/mutate_content.php @@ -892,11 +892,13 @@ function renderFormElement( ]); } } - $field_html .= ' -
-
- -
'; + $field_html .= ''; + if (file_exists(MODX_BASE_PATH . $field_value)) { + $field_html .= '
+
+ +
'; + } break; case "file": // handles the input of file uploads /* Modified by Timon for use with resource browser */