mirror of
https://github.com/getgrav/grav.git
synced 2026-07-01 03:27:24 +02:00
Only call extra method on blueprints if blueprints exist
Reverts partial change made in https://github.com/getgrav/grav/commit/ac3396e6c46f9bcd8d5cbb45370b5daad c84aadc
This commit is contained in:
@@ -211,7 +211,7 @@ class Data implements DataInterface, \ArrayAccess, \Countable, ExportInterface
|
||||
*/
|
||||
public function extra()
|
||||
{
|
||||
return $this->blueprints()->extra($this->items);
|
||||
return $this->blueprints ? $this->blueprints->extra($this->items) : array();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user