mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #722 from sonet/2.4
MINOR fixed array to string conversion to avoid PHP 5.4 warnings
This commit is contained in:
commit
33b9b18a4c
@ -159,7 +159,7 @@ class SSViewer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(substr((string) $templateList,-3) == '.ss') {
|
if(is_string($templateList) && substr((string) $templateList,-3) == '.ss') {
|
||||||
$this->chosenTemplates['main'] = $templateList;
|
$this->chosenTemplates['main'] = $templateList;
|
||||||
} else {
|
} else {
|
||||||
if(!is_array($templateList)) $templateList = array($templateList);
|
if(!is_array($templateList)) $templateList = array($templateList);
|
||||||
|
Loading…
Reference in New Issue
Block a user