Commit b64e4779 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix warning when submitting feedback without an attachment

parent b5b7d92d
......@@ -2510,7 +2510,7 @@ function add_feedback_form_submit(Pieform $form, $values) {
db_begin();
if (is_array($values['attachment'])) {
if (isset($values['attachment']) && is_array($values['attachment'])) {
require_once(get_config('libroot') . 'group.php');
require_once(get_config('libroot') . 'uploadmanager.php');
safe_require('artefact', 'file');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment