summaryrefslogtreecommitdiffstats
path: root/system/libraries/Upload.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/libraries/Upload.php')
-rw-r--r--system/libraries/Upload.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/system/libraries/Upload.php b/system/libraries/Upload.php
index 287e28106..b1d6ad6ca 100644
--- a/system/libraries/Upload.php
+++ b/system/libraries/Upload.php
@@ -369,12 +369,12 @@ class CI_Upload {
'image_size_str' => $this->image_size_str,
);
- if ($index === NULL OR ! isset($data[$index]))
+ if ( ! empty($index))
{
- return $data;
+ return isset($data[$index]) ? $data[$index] : NULL;
}
- return $data[$index];
+ return $data;
}
// --------------------------------------------------------------------