From a3cbc0305974df7dec34bb52625b53cb501b24b6 Mon Sep 17 00:00:00 2001 From: Sophist Date: Tue, 17 Dec 2013 17:04:55 +0000 Subject: [PATCH] Fix #1110 F3.0 Fix #1110 F3.0 --- plugins/fabrik_form/logs/logs.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/fabrik_form/logs/logs.php b/plugins/fabrik_form/logs/logs.php index 66e9a977a6c..9f543c8bb28 100644 --- a/plugins/fabrik_form/logs/logs.php +++ b/plugins/fabrik_form/logs/logs.php @@ -223,8 +223,12 @@ function generate_filename ($length) { $c = 0; $origData = $formModel->_origData; + $log_elements = $params->get('logs_element_list', ''); + + if(!empty($log_elements)){ + $log_elements = explode(',', str_replace(' ', '', $log_elements)); + } - $log_elements = explode(',', str_replace(' ', '', $params->get('logs_element_list', ''))); $groups = $formModel->getGroupsHiarachy(); foreach ($groups as $groupModel) {