X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiSetNotificationTimestamp.php;h=f7dc4a78e9bba5ae918a4e8c6544dfe7b7634fd9;hb=e929c716317eae338196d7f35a98550de769b224;hp=b6a0a7838eef48df3d8a4225874deeeec3553742;hpb=c66360d167aeacec8ec296ae8ff29fd5d3f1a557;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiSetNotificationTimestamp.php b/includes/api/ApiSetNotificationTimestamp.php index b6a0a7838e..f7dc4a78e9 100644 --- a/includes/api/ApiSetNotificationTimestamp.php +++ b/includes/api/ApiSetNotificationTimestamp.php @@ -3,8 +3,6 @@ /** * API for MediaWiki 1.14+ * - * Created on Jun 18, 2012 - * * Copyright © 2012 Wikimedia Foundation and contributors * * This program is free software; you can redistribute it and/or modify @@ -32,7 +30,7 @@ use MediaWiki\MediaWikiServices; */ class ApiSetNotificationTimestamp extends ApiBase { - private $mPageSet; + private $mPageSet = null; public function execute() { $user = $this->getUser(); @@ -189,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 ); }