Better handles an empty array.

This commit is contained in:
moodler 2005-01-26 14:16:15 +00:00
parent b3f748f655
commit f21330e3a0

View File

@ -14,7 +14,7 @@
/// Following lines are just for standard theme/styles.php
if (!isset($THEME->standardsheets) or $THEME->standardsheets === true) { // Use all the sheets we have
$subsheets = array('styles_layout', 'styles_fonts', 'styles_color', 'styles_moz');
} else if ($THEME->standardsheets === false) { // We can stop right now!
} else if (empty($THEME->standardsheets)) { // We can stop right now!
exit;
} else { // Use the provided subset only
$subsheets = $THEME->standardsheets;