X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fapi%2FApiPageSet.php;h=b321c7d14cea261cafc884da3424572605a9fcd8;hp=450ebb691124e6f054e00c7bcaaf844ba4a89da4;hb=c13fee87d42bdd6fdf6764edb6f6475c14c27749;hpb=06825cbeaeed8fdee45260bf268d2e4744fbb2e1 diff --git a/includes/api/ApiPageSet.php b/includes/api/ApiPageSet.php index 450ebb6911..b321c7d14c 100644 --- a/includes/api/ApiPageSet.php +++ b/includes/api/ApiPageSet.php @@ -1398,10 +1398,10 @@ class ApiPageSet extends ApiBase { $data[$toPageId], $this->mGeneratorData[$fromNs][$fromDBkey] ); - if ( $result instanceof ApiResult ) { - if ( !$result->addValue( $path, $toPageId, $data[$toPageId], ApiResult::OVERRIDE ) ) { - return false; - } + if ( $result instanceof ApiResult && + !$result->addValue( $path, $toPageId, $data[$toPageId], ApiResult::OVERRIDE ) + ) { + return false; } } }