mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 20:53:53 +01:00
Better handles an empty array.
This commit is contained in:
parent
b3f748f655
commit
f21330e3a0
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user