fixed undefined offset #2276

This commit is contained in:
Jörn Röder 2013-07-28 19:39:40 +02:00
parent 541436feb0
commit e2a43961d0

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];
}
}
/**