Skip to content

Commit c2a2a10

Browse files
peterjaapgelanivishal
authored andcommitted
Create empty modelData array to avoid undefined var error
1 parent e6dedb7 commit c2a2a10

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/code/Magento/NewRelicReporting/Model/Cron/ReportModulesInfo.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public function report()
6464
$moduleData = $this->collect->getModuleData();
6565
if (count($moduleData['changes']) > 0) {
6666
foreach ($moduleData['changes'] as $change) {
67+
$modelData = [];
6768
switch ($change['type']) {
6869
case Config::ENABLED:
6970
$modelData = [

0 commit comments

Comments
 (0)