X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiPatrol.php;h=d1212f39b1395ba26afb8c2e0081d145e5a987a4;hb=e07ac8f31466fd7e9dff4cbc9cccb31b96c942e8;hp=2b65f9512826f1baae1c527656e12ce409bf4064;hpb=750985247e2d36931cfd7001b9123f9ce68e55c6;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiPatrol.php b/includes/api/ApiPatrol.php index 2b65f95128..d1212f39b1 100644 --- a/includes/api/ApiPatrol.php +++ b/includes/api/ApiPatrol.php @@ -71,7 +71,7 @@ class ApiPatrol extends ApiBase { $this->dieStatus( $this->errorArrayToStatus( $retval, $user ) ); } - $result = [ 'rcid' => intval( $rc->getAttribute( 'rc_id' ) ) ]; + $result = [ 'rcid' => (int)$rc->getAttribute( 'rc_id' ) ]; ApiQueryBase::addTitleInfo( $result, $rc->getTitle() ); $this->getResult()->addValue( null, $this->getModuleName(), $result ); }