From d5cfd22f8dda4bacd6e0fe384344cf1fb9f2d66e Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 23 Sep 2013 18:20:34 +0200 Subject: Remove unneeded return statements after show_error show_error() already exits after displaying the message. Signed-off-by: Florian Pritz --- application/libraries/Ddownload/drivers/Ddownload_lighttpd.php | 1 - application/libraries/Ddownload/drivers/Ddownload_nginx.php | 1 - 2 files changed, 2 deletions(-) diff --git a/application/libraries/Ddownload/drivers/Ddownload_lighttpd.php b/application/libraries/Ddownload/drivers/Ddownload_lighttpd.php index 31db4d340..780f60838 100644 --- a/application/libraries/Ddownload/drivers/Ddownload_lighttpd.php +++ b/application/libraries/Ddownload/drivers/Ddownload_lighttpd.php @@ -16,7 +16,6 @@ class Ddownload_lighttpd extends Ddownload_Driver { if (strpos($file, $upload_path) !== 0) { show_error('Invalid file path'); - return; } header('Content-disposition: inline; filename="'.$filename."\"\n"); diff --git a/application/libraries/Ddownload/drivers/Ddownload_nginx.php b/application/libraries/Ddownload/drivers/Ddownload_nginx.php index 5fb6ffa87..2410df4d4 100644 --- a/application/libraries/Ddownload/drivers/Ddownload_nginx.php +++ b/application/libraries/Ddownload/drivers/Ddownload_nginx.php @@ -19,7 +19,6 @@ class Ddownload_nginx extends Ddownload_Driver { $file_path = substr($file, strlen($upload_path)); } else { show_error('Invalid file path'); - return; } header('Content-disposition: inline; filename="'.$filename."\"\n"); -- cgit v1.2.3-24-g4f1b