From d67ba20d6acd6ca6584880eccb61bbec6811ad39 Mon Sep 17 00:00:00 2001 From: NorHei Date: Tue, 26 Sep 2017 20:33:50 +0200 Subject: [PATCH] Bugs in Droplet Module #277 This schould fix both Please test --- wbce/modules/droplets/templates/tool.twig | 2 -- wbce/modules/droplets/tool.php | 12 ++++++------ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/wbce/modules/droplets/templates/tool.twig b/wbce/modules/droplets/templates/tool.twig index e017c2126..4f0bcce2b 100644 --- a/wbce/modules/droplets/templates/tool.twig +++ b/wbce/modules/droplets/templates/tool.twig @@ -1,5 +1,3 @@ {% include 'header.twig' %} -{% if droplets %} {% include 'list.twig' %} -{% endif %} {{ content|raw }} \ No newline at end of file diff --git a/wbce/modules/droplets/tool.php b/wbce/modules/droplets/tool.php index d39c51aa7..a33bdc2f6 100644 --- a/wbce/modules/droplets/tool.php +++ b/wbce/modules/droplets/tool.php @@ -97,13 +97,13 @@ { // ----- export ----- case 'export': - $list = $_REQUEST['markeddroplet']; - if(count($list)) - { - $twig_data['info'] = wbce_export_droplets($list); - } + if (!empty($_REQUEST['markeddroplet'])){ + $list = $_REQUEST['markeddroplet']; + if(is_array($list) AND count($list)) { + $twig_data['info'] = wbce_export_droplets($list); + } + } break; - // ----- import ----- case 'upload': $twig_data['content'] = wbce_handle_upload();