mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-08-30 14:36:06 +02: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
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $subTemplates = null;
|
protected $subTemplates = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var bool
|
* @var bool
|
||||||
|
Loading…
Reference in New Issue
Block a user