mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUG subTemplates should be an array
See `SSViewer::templates()`and `SSViewer::setTemplateFile()` Methods assume this variable should be an array. If you call `setTemplateFile()` directly prior / instead of any `setTemplate` call then a PHP warning is generated `[Warning] array_merge(): Expected parameter 2 to be an array, null given`
This commit is contained in:
parent
bcddf557e1
commit
21c27154dd
@ -167,7 +167,7 @@ class SSViewer implements Flushable
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $subTemplates = null;
|
||||
protected $subTemplates = [];
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
|
Loading…
x
Reference in New Issue
Block a user