X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiSetNotificationTimestamp.php;h=f7dc4a78e9bba5ae918a4e8c6544dfe7b7634fd9;hb=e929c716317eae338196d7f35a98550de769b224;hp=5e7a63316c1cfb9931b62ab7c2a4a3008dc9aaf9;hpb=6b3e5511fb848890f174690885e748b90389c0b8;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiSetNotificationTimestamp.php b/includes/api/ApiSetNotificationTimestamp.php index 5e7a63316c..f7dc4a78e9 100644 --- a/includes/api/ApiSetNotificationTimestamp.php +++ b/includes/api/ApiSetNotificationTimestamp.php @@ -30,7 +30,7 @@ use MediaWiki\MediaWikiServices; */ class ApiSetNotificationTimestamp extends ApiBase { - private $mPageSet; + private $mPageSet = null; public function execute() { $user = $this->getUser(); @@ -187,7 +187,7 @@ class ApiSetNotificationTimestamp extends ApiBase { * @return ApiPageSet */ private function getPageSet() { - if ( !isset( $this->mPageSet ) ) { + if ( $this->mPageSet === null ) { $this->mPageSet = new ApiPageSet( $this ); }