From 11e29352bc3b8a889f11a4b70d8e0915fbcc7229 Mon Sep 17 00:00:00 2001 From: Daniel Stefan Haischt Date: Mon, 8 Jan 2007 02:39:18 +0000 Subject: * fix: missing else if (disks_check_mount_fullname($disk)) --- packages/freenas/www/disks_manage_init.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/freenas/www/disks_manage_init.php b/packages/freenas/www/disks_manage_init.php index 0d5642d9..de4c65e8 100644 --- a/packages/freenas/www/disks_manage_init.php +++ b/packages/freenas/www/disks_manage_init.php @@ -500,11 +500,11 @@ if (! empty($_POST)) header("Status: 500 Internal Server Error. {$statustxt}"); echo $divcontents; exit; - } else { + } else if (disks_check_mount_fullname($disk)) { $errormsg = sprintf(gettext("The disk is currently mounted! Unmount this disk first before proceeding."), "disks_mount_tools.php?disk={$disk}&action=umount"); $do_format = false; } - + if($do_format) { /* Get the id of the disk array entry. */ $NotFound = 1; -- cgit v1.2.3