mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX Check if blank method passed (#10417)
This commit is contained in:
parent
c0e8a21acf
commit
dd210e0f84
@ -156,6 +156,9 @@ trait CustomMethods
|
||||
*/
|
||||
protected function getExtraMethodConfig($method)
|
||||
{
|
||||
if (empty($method)) {
|
||||
return null;
|
||||
}
|
||||
// Lazy define methods
|
||||
if (!isset(self::$extra_methods[static::class])) {
|
||||
$this->defineMethods();
|
||||
|
Loading…
Reference in New Issue
Block a user