X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiPurge.php;h=bb0be6848473a9b924dd6f6f4816c8b7de3f2c84;hb=9957322e4439156ed012469479dc3fc49a6936ca;hp=b7cfc2c6a20b659a3c27700dcef1ba0f1b13c926;hpb=ebf65fabc422122f53047fa22560926e3e7580f9;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiPurge.php b/includes/api/ApiPurge.php index b7cfc2c6a2..bb0be68484 100644 --- a/includes/api/ApiPurge.php +++ b/includes/api/ApiPurge.php @@ -26,7 +26,7 @@ use MediaWiki\MediaWikiServices; * @ingroup API */ class ApiPurge extends ApiBase { - private $mPageSet; + private $mPageSet = null; /** * Purges the cache of a page @@ -132,7 +132,7 @@ class ApiPurge extends ApiBase { * @return ApiPageSet */ private function getPageSet() { - if ( !isset( $this->mPageSet ) ) { + if ( $this->mPageSet === null ) { $this->mPageSet = new ApiPageSet( $this ); }