Bugfixes browser

This commit is contained in:
Alan Garcia 2012-08-23 07:56:20 +00:00
parent 5ce5b9f565
commit cdbb8450f4
1 changed files with 3 additions and 5 deletions

View File

@ -60,7 +60,7 @@ if (!$R && $p["golastdir"]) {
} }
$R=$bro->convertabsolute($R,1); $R=$bro->convertabsolute($R,1);
// on fait ? // on fait ?
if (isset($formu) && $formu) { if (!empty($formu) && $formu) {
switch ($formu) { switch ($formu) {
case 1: // Créer le répertoire $R.$nomfich case 1: // Créer le répertoire $R.$nomfich
if (!$bro->CreateDir($R,$nomfich)) { if (!$bro->CreateDir($R,$nomfich)) {
@ -81,11 +81,11 @@ if (isset($formu) && $formu) {
break; break;
case 2: // act vaut Supprimer Copier ou Renommer. case 2: // act vaut Supprimer Copier ou Renommer.
if ($actdel) { if ($actdel) {
if (isset($del_confirm) && $del_confirm != "") { if (!empty($del_confirm) ) {
if (!$bro->DeleteFile($d,$R)) { if (!$bro->DeleteFile($d,$R)) {
$error = $err->errstr(); $error = $err->errstr();
} }
} elseif (!isset($cancel) && is_array($d)) { } elseif (empty($cancel) && is_array($d)) {
include_once("head.php"); include_once("head.php");
?> ?>
<h3><?php printf(_("Deleting files and/or directories")); ?> : </h3> <h3><?php printf(_("Deleting files and/or directories")); ?> : </h3>
@ -103,8 +103,6 @@ if (isset($formu) && $formu) {
<input type="submit" class="inb" name="cancel" value="<?php __("No"); ?>" /> <input type="submit" class="inb" name="cancel" value="<?php __("No"); ?>" />
</blockquote> </blockquote>
</form> </form>
</body>
</html>
<?php <?php
include_once("foot.php"); include_once("foot.php");
exit(); exit();