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

Notices in featured view #259

Open
Ruud68 opened this issue Jun 6, 2016 · 1 comment
Open

Notices in featured view #259

Ruud68 opened this issue Jun 6, 2016 · 1 comment

Comments

@Ruud68
Copy link
Contributor

Ruud68 commented Jun 6, 2016

Hi,
I get the following notices:

Notice: Trying to get property of non-object in /var/www/html/test/templates/meet_gavern/html/com_content/featured/default.php on line 23
Notice: Trying to get property of non-object in /var/www/html/test/templates/meet_gavern/html/com_content/featured/default.php on line 24

I have looked at the code and the lines are below:

// Create shortcuts to some parameters.
$params         = $this->item->params;
$images     = json_decode($this->item->images);

Both the $params and $images are NOT used in that file. It is save to just remove them?

@dziudek
Copy link
Contributor

dziudek commented Jun 7, 2016

Hello,

Yes, you can remove these lines as they are used and duplicated in the default_item.php file: https://github.com/GavickPro/Meet-Gavern/blob/master/meet_gavern/html/com_content/featured/default_item.php#L13-L14

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

2 participants