From 2ef4a2d4ee86577b00311e65bbeb0439f7aaa1fc Mon Sep 17 00:00:00 2001 From: Nathan Date: Wed, 10 Jan 2018 09:50:18 +1100 Subject: [PATCH] FIX, adding a missing return statement. This causes issues such as an `_function` to incorrectly return null. --- core/Object.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Object.php b/core/Object.php index 98691d10f..a17f461b2 100755 --- a/core/Object.php +++ b/core/Object.php @@ -949,7 +949,7 @@ abstract class Object { protected function createMethod($method, $code) { self::$extra_methods[get_class($this)][strtolower($method)] = array ( 'function' => function($obj, $args) use ($code) { - eval($code); + return eval($code); } ); }