Merge pull request #2277 from joernroeder/3.1

fixed undefined offset #2276
This commit is contained in:
Ingo Schommer 2013-08-03 09:38:13 -07:00
commit 9bd9b60576

View File

@ -834,9 +834,13 @@ class SSViewer {
}
$found = $loader->findTemplates("$type/$identifier", $theme);
if ($found) {
if (isset($found['main'])) {
return $found['main'];
}
else if (!empty($found)) {
$founds = array_values($found);
return $founds[0];
}
}
/**