Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTMLHelper stylesheet method #21734

Closed
wants to merge 1 commit into from
Closed

Conversation

brianteeman
Copy link
Contributor

Pull Request for Issue #21216 .

Summary of Changes

In ./libraries/src/HTML/HTMLHelper.php at line 610 it writes:
if (!is_array($attribs))
but should better be
if (!is_array($attribs) || !is_array($options))

Reason

An old extension adding stylesheets the (very) old way like
JHTML::stylesheet('filename','path-to-file');
will obviously not add the stylesheet but still create several "illegal string offset" notices instead of better eventually add a deprecated message to flog

(this is a recreation of a pr from @FoTo50 which went wrong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants