X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Flibs%2Frdbms%2FChronologyProtector.php;h=938e5345dbe8bdbb74388f67209778677a31a7d5;hp=45179cc8351b3da81238756f02944127a1842a4e;hb=4df0c71911500466a6330b8fe29c623ef5b51e41;hpb=6cce704da1335078aa98838e7a7da9eeb4e46b67 diff --git a/includes/libs/rdbms/ChronologyProtector.php b/includes/libs/rdbms/ChronologyProtector.php index 45179cc835..938e5345db 100644 --- a/includes/libs/rdbms/ChronologyProtector.php +++ b/includes/libs/rdbms/ChronologyProtector.php @@ -78,9 +78,8 @@ class ChronologyProtector implements LoggerAwareInterface { */ public function __construct( BagOStuff $store, array $client, $posIndex = null ) { $this->store = $store; - $this->clientId = isset( $client['clientId'] ) - ? $client['clientId'] - : md5( $client['ip'] . "\n" . $client['agent'] ); + $this->clientId = $client['clientId'] ?? + md5( $client['ip'] . "\n" . $client['agent'] ); $this->key = $store->makeGlobalKey( __CLASS__, $this->clientId, 'v2' ); $this->waitForPosIndex = $posIndex;