mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #7742 from nglasl/3.6
FIX, adding a missing return statement.
This commit is contained in:
commit
4c51cf67e7
@ -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);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user