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:
Brian Wolff 2022-09-12 19:13:43 -07:00
parent 2fc21db598
commit 6bbdd06080

View file

@ -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'] );