Skip to content

Fix PHP warnings#434

Merged
joomdonation merged 2 commits intojoomla-extensions:masterfrom
Harmageddon:patch-1
Aug 18, 2021
Merged

Fix PHP warnings#434
joomdonation merged 2 commits intojoomla-extensions:masterfrom
Harmageddon:patch-1

Conversation

@Harmageddon
Copy link
Copy Markdown

Similar to joomla/joomla-cms#27273

Fixes #433.

Summary of Changes

This PR fixes PHP warnings for the weblinks category view.

Testing Instructions

  1. Create a category view.
  2. Add some weblinks
  3. Enable tags for this view.
  4. Look at the page in frontend.

Expected result

No PHP warnings

Actual result

Two times "Warning: Creating default object from empty value"

Documentation Changes Required

Similar to joomla/joomla-cms#27273

Fixes joomla-extensions#433.

This PR fixes PHP warnings for the weblinks category view.
@ChristineWk
Copy link
Copy Markdown

I have tested this item ✅ successfully on 84ec6b9

changed to PHP 7.4.16
changed codes accordingly via FTP


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/weblinks/434.

@joomdonation
Copy link
Copy Markdown
Contributor

Thanks @Harmageddon for your PR. I fixed the issue but we can improve the code abit to save the system from having to query tags data for weblink again. I made commit directly in your PR, hope that is OK

With patch applied, the issue is sorted and tags are being displayed as expected, so this PR works and I'm going to merge it.

category

Thanks

@joomdonation joomdonation merged commit 427998e into joomla-extensions:master Aug 18, 2021
@Harmageddon
Copy link
Copy Markdown
Author

Thank you!

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.

Warning: Creating default object from empty value PHP 7.4

3 participants