MINOR fixed array to string conversion to avoid PHP 5.4 warnings

This commit is contained in:
Adam Skrzypulec 2012-08-15 11:40:40 -05:00
parent f6c69d5241
commit 766987105d

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);