Skip to content

Commit efad31d

Browse files
handle controller empty return
1 parent 8360574 commit efad31d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

system/core/CodeIgniter.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,9 @@ function &get_instance()
472472
}
473473
}
474474
$result = $reflect_class->getMethod($method)->invokeArgs($CI, $context_args);
475+
if (is_null($result)) {
476+
return;
477+
}
475478
if (!empty($GLOBALS['_php_error'])) {
476479
if (!isset($result['_php_error'])) {
477480
$result['_php_error'] = $GLOBALS['_php_error'];

0 commit comments

Comments
 (0)