diff --git a/apps/admin_audit/lib/Actions/Sharing.php b/apps/admin_audit/lib/Actions/Sharing.php index 2c28660a56..03864a2bce 100644 --- a/apps/admin_audit/lib/Actions/Sharing.php +++ b/apps/admin_audit/lib/Actions/Sharing.php @@ -294,15 +294,26 @@ class Sharing extends Action { * @param array $params */ public function updateExpirationDate(array $params) { - $this->log( - 'The expiration date of the publicly shared %s with ID "%s" has been changed to "%s"', - $params, - [ - 'itemType', - 'itemSource', - 'date', - ] - ); + if ($params['date'] === null) { + $this->log( + 'The expiration date of the publicly shared %s with ID "%s" has been removed', + $params, + [ + 'itemType', + 'itemSource', + ] + ); + } else { + $this->log( + 'The expiration date of the publicly shared %s with ID "%s" has been changed to "%s"', + $params, + [ + 'itemType', + 'itemSource', + 'date', + ] + ); + } } /**