summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-02-05 14:31:08 +0100
committerAndrey Andreev <narf@devilix.net>2015-02-05 14:31:08 +0100
commit79533cac482a9d8f9211c8ff607968de3b27d1e4 (patch)
treef3cbaf44b6cf7cab075f4cc5f388bd1c3ecabd79 /system/helpers
parent74d0e23eae054c49bbf7d9d5c4738fa5a63754cf (diff)
parent40bbd60bcc5135f898f46e502f7b04ef065274e0 (diff)
Merge pull request #3551 from gadelat/voids
Fixed inconsistent return types
Diffstat (limited to 'system/helpers')
-rw-r--r--system/helpers/download_helper.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/system/helpers/download_helper.php b/system/helpers/download_helper.php
index 379120552..95c94a1b8 100644
--- a/system/helpers/download_helper.php
+++ b/system/helpers/download_helper.php
@@ -65,7 +65,7 @@ if ( ! function_exists('force_download'))
{
if ($filename === '' OR $data === '')
{
- return FALSE;
+ return;
}
elseif ($data === NULL)
{
@@ -77,7 +77,7 @@ if ( ! function_exists('force_download'))
}
else
{
- return FALSE;
+ return;
}
}
else
@@ -98,7 +98,7 @@ if ( ! function_exists('force_download'))
/* If we're going to detect the MIME type,
* we'll need a file extension.
*/
- return FALSE;
+ return;
}
// Load the mime types
@@ -125,7 +125,7 @@ if ( ! function_exists('force_download'))
if ($data === NULL && ($fp = @fopen($filepath, 'rb')) === FALSE)
{
- return FALSE;
+ return;
}
// Clean output buffer