X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flogging%2FLogEntry.php;h=fa94fe5b23ca529de9bb8ecaaa9d3923ff930817;hb=97c5bc0a1ea20ed4f6c3e26b97dcd5d6f360a8ce;hp=1c5899ba85fae39c1dddde60ef9d8560d6a49f25;hpb=ea747bb2d4a4f1fadbd57256df6a20037dfc3966;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/logging/LogEntry.php b/includes/logging/LogEntry.php index 1c5899ba85..fa94fe5b23 100644 --- a/includes/logging/LogEntry.php +++ b/includes/logging/LogEntry.php @@ -437,8 +437,6 @@ class ManualLogEntry extends LogEntryBase { protected $legacy = false; /** - * Constructor. - * * @since 1.19 * @param string $type * @param string $subtype @@ -634,7 +632,7 @@ class ManualLogEntry extends LogEntryBase { } $dbw->insert( 'logging', $data, __METHOD__ ); - $this->id = !is_null( $id ) ? $id : $dbw->insertId(); + $this->id = $dbw->insertId(); $rows = []; foreach ( $relations as $tag => $values ) {