Skip to content

Commit

Permalink
Bugs in Droplet Module #277
Browse files Browse the repository at this point in the history
This schould fix both
Please test
  • Loading branch information
NorHei committed Sep 26, 2017
1 parent d4f55fd commit d67ba20
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 0 additions & 2 deletions wbce/modules/droplets/templates/tool.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{% include 'header.twig' %}
{% if droplets %}
{% include 'list.twig' %}
{% endif %}
{{ content|raw }}
12 changes: 6 additions & 6 deletions wbce/modules/droplets/tool.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit d67ba20

Please sign in to comment.