X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Flibs%2Frdbms%2FChronologyProtector.php;h=938e5345dbe8bdbb74388f67209778677a31a7d5;hb=4077b57759756ecd0d25427ec9598feb28a28ac1;hp=45179cc8351b3da81238756f02944127a1842a4e;hpb=216865344b108082f9500b5eb8cd5efeaa7df72f;p=lhc%2Fweb%2Fwiklou.git 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;