Skip to content

Commit

Permalink
Fix Cannot use a scalar value warning
Browse files Browse the repository at this point in the history
Per #15548, multiple Cannot use a scalar value as an array warning are showing on many sites after update to Joomla 3.7
  • Loading branch information
weeblr committed Apr 26, 2017
1 parent f461bd5 commit ded3c88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/cms/html/html.php
Expand Up @@ -673,7 +673,7 @@ public static function stylesheet($file, $options = array(), $attribs = array())
public static function script($file, $options = array(), $attribs = array())
{
// B/C before 3.7.0
if (!is_array($options) && !is_array($attribs))
if (!is_array($options))
{
JLog::add('The script method signature used has changed, use (file, options, attributes) instead.', JLog::WARNING, 'deprecated');

Expand Down

0 comments on commit ded3c88

Please sign in to comment.