mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
FIX, adding a missing return statement.
This causes issues such as an `_function` to incorrectly return null.
This commit is contained in:
parent
a049876418
commit
2ef4a2d4ee
@ -949,7 +949,7 @@ abstract class Object {
|
|||||||
protected function createMethod($method, $code) {
|
protected function createMethod($method, $code) {
|
||||||
self::$extra_methods[get_class($this)][strtolower($method)] = array (
|
self::$extra_methods[get_class($this)][strtolower($method)] = array (
|
||||||
'function' => function($obj, $args) use ($code) {
|
'function' => function($obj, $args) use ($code) {
|
||||||
eval($code);
|
return eval($code);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user