Skip to content

Commit

Permalink
Fix undefined variables in image upload notification.
Browse files Browse the repository at this point in the history
  • Loading branch information
itinerare committed May 22, 2020
1 parent 0665f8e commit 41bdd71
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/Services/CharacterManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -370,9 +370,10 @@ public function createLog($senderId, $senderAlias, $recipientId, $recipientAlias
* @param array $data
* @param \App\Models\Character\Character $character
* @param \App\Models\User\User $user
* @param \App\Models\User\User $staff
* @return \App\Models\Character\Character|bool
*/
public function createImage($data, $character, $user)
public function createImage($data, $character, $user, $staff)
{
DB::beginTransaction();

Expand Down Expand Up @@ -409,6 +410,9 @@ public function createImage($data, $character, $user)
Notifications::create('IMAGE_UPLOAD', $character->user, [
'character_url' => $character->url,
'character_slug' => $character->slug,
'character_name' => $character->name,
'sender_url' => $staff->url,
'sender_name' => $staff->name
]);
}

Expand Down

0 comments on commit 41bdd71

Please sign in to comment.