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:
Ingo Schommer 2012-08-16 11:23:14 -07:00
commit 33b9b18a4c

View File

@ -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;
} else {
if(!is_array($templateList)) $templateList = array($templateList);