Skip to content

Commit 3979ccf

Browse files
committed
Fix user when updating another user's shout
1 parent fdacee6 commit 3979ccf

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

changelog.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@
1515
! -> Note
1616

1717
WIP
18+
# Fixed easyprofile avatars not showing on refresh
19+
# Fixed incorect name used when updating a different user's shout
1820
$ French language file updated (thanks Marc)
19-
# Fix easyprofile avatars not showing on refresh
2021

2122
Version 8.1.10
2223
# Fixed PHP fatal error with session token still existing

mod_shoutbox/helper.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,11 @@ public function postFiltering($shout, $user, $swearCounter, $swearNumber, $displ
428428
{
429429
$shout['type'] = isset($shout['type']) ? $shout['type'] : 'insert';
430430

431+
if ($shout['type'] === 'update')
432+
{
433+
$name = $shout['name'];
434+
}
435+
431436
return $this->addShout($shout['type'], $shout['id'], $name, $message, $ip);
432437
}
433438
}

0 commit comments

Comments
 (0)