diff options
Diffstat (limited to 'lib/exe/css.php')
-rw-r--r-- | lib/exe/css.php | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/lib/exe/css.php b/lib/exe/css.php index 73502f055..cb689d015 100644 --- a/lib/exe/css.php +++ b/lib/exe/css.php @@ -32,15 +32,10 @@ if(!defined('SIMPLE_TEST')){ function css_out(){ global $conf; global $lang; - switch ($_REQUEST['s']) { - case 'all': - case 'print': - case 'feed': - $style = $_REQUEST['s']; - break; - default: - $style = ''; - break; + $style = ''; + if (isset($_REQUEST['s']) && + in_array($_REQUEST['s'], array('all', 'print', 'feed'))) { + $style = $_REQUEST['s']; } $tpl = trim(preg_replace('/[^\w-]+/','',$_REQUEST['t'])); @@ -152,7 +147,7 @@ function css_out(){ function css_cacheok($cache,$files,$tplinc){ global $config_cascade; - if($_REQUEST['purge']) return false; //support purge request + if(isset($_REQUEST['purge'])) return false; //support purge request $ctime = @filemtime($cache); if(!$ctime) return false; //There is no cache |