Permalink
Browse files

Merge pull request #722 from sonet/2.4

MINOR fixed array to string conversion to avoid PHP 5.4 warnings
  • Loading branch information...
chillu committed Aug 16, 2012
2 parents f6c69d5 + 7669871 commit 33b9b18a4cf9c657d61b4137004c932605bc0781
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/SSViewer.php
View
@@ -159,7 +159,7 @@ public function __construct($templateList) {
}
}
- 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);

0 comments on commit 33b9b18

Please sign in to comment.