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

Fix undefined variable on PHP 7.3 #13593

Merged
merged 1 commit into from Oct 12, 2018
Merged

Fix undefined variable on PHP 7.3 #13593

merged 1 commit into from Oct 12, 2018

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Oct 11, 2018

fixes #13375
refs #13418

@sgiehl sgiehl added the Needs Review PRs that need a code review label Oct 11, 2018
@@ -398,7 +398,7 @@ public function get($idSite, $period, $date, $segment = false, $columns = false)
krsort($columnsByPlugin);

$mergedDataTable = false;
$params = compact('idSite', 'period', 'date', 'segment', 'idGoal');
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

variable $idGoal isn't defined in the method, so should be safe to simply remove it.

@tsteur
Copy link
Member

tsteur commented Oct 11, 2018

Looks good if tests pass 👍

@sgiehl sgiehl merged commit dbc90fb into 3.x-dev Oct 12, 2018
@sgiehl sgiehl deleted the fix73notice branch October 12, 2018 19:17
@sgiehl sgiehl added the not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. label Oct 12, 2018
@Findus23 Findus23 mentioned this pull request Oct 21, 2018
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WARNING: /var/www/html/plugins/API/API.php(401): Notice - compact(): Undefined variable: idGoal
2 participants