Skip to content

Commit

Permalink
Merge pull request #17 from BFoucher/feature/add-event-for-inject-dat…
Browse files Browse the repository at this point in the history
…a-before-send-mail

fix bad array construct
  • Loading branch information
paulandrieux authored Jan 10, 2017
2 parents 708be62 + 8093350 commit 6f62c09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Event/WidgetFormeMailEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function getData()
public function prependData($label, $value)
{
$newField = ['label' => $label, 'value' => $value];
$this->data = array_merge($newField, $this->data);
array_unshift($this->data, $newField);
}

/**
Expand All @@ -47,6 +47,6 @@ public function prependData($label, $value)
public function appendData($label, $value)
{
$newField = ['label' => $label, 'value' => $value];
$this->data = array_merge($this->data, $newField);
array_push($this->data, $newField);
}
}

0 comments on commit 6f62c09

Please sign in to comment.