diff options
author | Florian Pritz <bluewind@xinu.at> | 2013-09-23 18:20:34 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2013-09-23 18:20:34 +0200 |
commit | d5cfd22f8dda4bacd6e0fe384344cf1fb9f2d66e (patch) | |
tree | a790a489f5fe558fbcd21f2f8e02e196d35541d7 /application/libraries/Ddownload/drivers | |
parent | 635b0717931df907ee8015a42ad0ed1fcdf967c4 (diff) |
Remove unneeded return statements after show_error
show_error() already exits after displaying the message.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/libraries/Ddownload/drivers')
-rw-r--r-- | application/libraries/Ddownload/drivers/Ddownload_lighttpd.php | 1 | ||||
-rw-r--r-- | application/libraries/Ddownload/drivers/Ddownload_nginx.php | 1 |
2 files changed, 0 insertions, 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"); |