Coalesce rc comment field to empty string if null
Follow up to I14c6c22d822ae4 Fixes a warning on php 8.1 where the comment on log entries might be null. Change-Id: If0e41f0696a24a56f112e05c46a9a7fdbfaa3aaa
This commit is contained in:
parent
2fc21db598
commit
6bbdd06080
1 changed files with 1 additions and 1 deletions
|
|
@ -434,7 +434,7 @@ class RecentChange implements Taggable {
|
|||
$row = $this->mAttribs;
|
||||
|
||||
# Trim spaces on user supplied text
|
||||
$row['rc_comment'] = trim( $row['rc_comment'] );
|
||||
$row['rc_comment'] = trim( $row['rc_comment'] ?? '' );
|
||||
|
||||
# Fixup database timestamps
|
||||
$row['rc_timestamp'] = $dbw->timestamp( $row['rc_timestamp'] );
|
||||
|
|
|
|||
Loading…
Reference in a new issue