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

Warning undefined property in PHP8 #58

Open
michaelmarkl opened this issue Dec 12, 2022 · 0 comments
Open

Warning undefined property in PHP8 #58

michaelmarkl opened this issue Dec 12, 2022 · 0 comments

Comments

@michaelmarkl
Copy link

In PHP8.0 and 8.1 the access of undefined variables and properties is creating a warning.
I'm getting: Warning: Undefined property: stdClass::$href in /var/www/homepages/XXXX/public_html/vendor/contao-bootstrap/grid/src/Resources/contao/templates/gallery/bs_gallery_default.html5 on line 11.

If I correct the line from
<?php if ($col->href): ?> to
<?php if (isset($col->href) && $col->href): ?>
it works.

Could you correct that within the code too please?

Btw: same issue occured within the navbar.

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

No branches or pull requests

1 participant