Skip to content

Commit

Permalink
define $options as an array if its not already
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Lewis committed Apr 27, 2017
1 parent ee82188 commit b34f620
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libraries/cms/html/html.php
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,10 @@ public static function stylesheet($file, $options = array(), $attribs = array())
}
else
{
if (!is_array($options))
{
$options = array();
}
$options['relative'] = isset($options['relative']) ? $options['relative'] : false;
$options['pathOnly'] = isset($options['pathOnly']) ? $options['pathOnly'] : false;
$options['detectBrowser'] = isset($options['detectBrowser']) ? $options['detectBrowser'] : true;
Expand Down

0 comments on commit b34f620

Please sign in to comment.