From f21330e3a0de8d8d160fcdf2c2d2a0db9e338c1c Mon Sep 17 00:00:00 2001 From: moodler Date: Wed, 26 Jan 2005 14:16:15 +0000 Subject: [PATCH] Better handles an empty array. --- theme/standard/styles.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theme/standard/styles.php b/theme/standard/styles.php index 0fe3de775d..12296e23fa 100644 --- a/theme/standard/styles.php +++ b/theme/standard/styles.php @@ -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; -- 2.39.5