From 94adbb1834d54d3818bc494eca3c71d0b4d03214 Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Sat, 7 Oct 2017 18:01:12 +0200 Subject: [PATCH] =?UTF-8?q?[fix]=C2=A0browser=20managing=20properly=20EMPT?= =?UTF-8?q?Y=20actions=20(no=20file=20or=20folder=20selected=20when=20chec?= =?UTF-8?q?king=20'move',=20'delete',=20'permission',=20or=20'rename'=20..?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bureau/admin/bro_main.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bureau/admin/bro_main.php b/bureau/admin/bro_main.php index beb33052..68f0dcbe 100755 --- a/bureau/admin/bro_main.php +++ b/bureau/admin/bro_main.php @@ -33,8 +33,8 @@ include_once ("head.php"); $fields = array ( "R" => array ("request", "string", ""), - "o" => array ("request", "array", ""), - "d" => array ("request", "array", ""), + "o" => array ("request", "array", array()), + "d" => array ("request", "array", array()), "perm" => array ("post", "array", array()), "formu" => array ("post", "integer", ""), "actextract" => array ("request", "string", ""), @@ -97,7 +97,7 @@ if (!empty($formu) && $formu) { $msg->raise("INFO", "bro", _("The file '%s' was successfully deleted"), $v); } } - } elseif (empty($cancel) && is_array($d)) { + } elseif (empty($cancel) && count($d)) { include_once("head.php"); ?>

:

@@ -124,7 +124,7 @@ if (!empty($formu) && $formu) { exit(); } } - if ($actcopy) { + if ($actcopy && count($d)) { if ($bro->CopyFile($d,$R,$actmoveto)) { if (count($d) == 1) { if (is_dir($absolute . "/" . $d[0])) @@ -135,7 +135,7 @@ if (!empty($formu) && $formu) { $msg->raise("INFO", "bro", _("The files / folders were successfully copied")); } } - if ($actmove) { + if ($actmove && count($d)) { if ($bro->MoveFile($d,$R,$actmoveto)) { if (count($d) == 1) { if (is_dir($absolute . "/" . $d[0]))