From 3715f4a81a22232ce268efced31e1893eff7d043 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Tue, 16 Mar 2010 17:31:20 +0100 Subject: fix message when delete password is wrong Signed-off-by: Florian Pritz --- system/application/controllers/file.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'system/application/controllers') diff --git a/system/application/controllers/file.php b/system/application/controllers/file.php index 1d4a369f7..0c670f11d 100644 --- a/system/application/controllers/file.php +++ b/system/application/controllers/file.php @@ -36,8 +36,7 @@ class File extends Controller { { $id = $this->uri->segment(3); $password = $this->input->post('password'); - if ($password !== false && $this->file_mod->id_exists($id)) { - $this->file_mod->delete_id($id, $password); + if ($password !== false && $this->file_mod->id_exists($id) && $this->file_mod->delete_id($id, $password)) { echo $id." deleted\n"; } else { echo 'Couldn\'t delete '.$id."\n"; -- cgit v1.2.3-24-g4f1b