fixes
diff --git a/system/libraries/Upload.php b/system/libraries/Upload.php
index 287e281..b1d6ad6 100644
--- a/system/libraries/Upload.php
+++ b/system/libraries/Upload.php
@@ -369,12 +369,12 @@
 				'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;
 	}
 
 	// --------------------------------------------------------------------