Skip to content

Commit 7bf2467

Browse files
committed
🐛 fix: files() function in ci_core_helper.php
Signed-off-by: otengkwame <developerkwame@gmail.com>
1 parent 41bb025 commit 7bf2467

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Core/helpers/ci_core_helper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,11 +506,11 @@ function current_route()
506506
* function to get $_FILES values
507507
*
508508
* @param string $index
509-
* @return array|string
509+
* @return mixed
510510
*/
511511
function files($index = '')
512512
{
513-
if ($index !== '') {
513+
if (isset($_FILES[$index])) {
514514
return $_FILES[$index];
515515
}
516516

0 commit comments

Comments
 (0)