X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FCommentStore.php;h=6b94d58e6cf430d577588fd24247171e614ce53a;hb=9c185ca85c3c58f96e866c9347c2b7f031ddb289;hp=e9b08e89dc97cba0181a61b5f577159252ac9102;hpb=8eb6cf585c5fb3d7dd5f014bac27518959512b98;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/CommentStore.php b/includes/CommentStore.php index e9b08e89dc..6b94d58e6c 100644 --- a/includes/CommentStore.php +++ b/includes/CommentStore.php @@ -261,7 +261,7 @@ class CommentStore { private function getCommentInternal( IDatabase $db = null, $key, $row, $fallback = false ) { $row = (array)$row; if ( array_key_exists( "{$key}_text", $row ) && array_key_exists( "{$key}_data", $row ) ) { - $cid = isset( $row["{$key}_cid"] ) ? $row["{$key}_cid"] : null; + $cid = $row["{$key}_cid"] ?? null; $text = $row["{$key}_text"]; $data = $row["{$key}_data"]; } elseif ( $this->stage === MIGRATION_OLD ) {