X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flogging%2FLogEntry.php;h=fa94fe5b23ca529de9bb8ecaaa9d3923ff930817;hb=4a5f646a7fea7cbe0421c5cf38b72bae5c1bcf65;hp=1c5899ba85fae39c1dddde60ef9d8560d6a49f25;hpb=4d609f015dd64528e772bbaa088d378aa26334eb;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 ) {