X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fapi%2FApiQueryLinks.php;h=200fda8864466afbc84fcbff222b966e64b6b2b7;hb=0d6ef1c0b20093e03e95a6b7f303c7a2de5de3af;hp=67bf619c894477c3ca140db4210ba769b25f9699;hpb=77e3624caba072521fbc1826af2d47f9b29f4032;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryLinks.php b/includes/api/ApiQueryLinks.php index 67bf619c89..200fda8864 100644 --- a/includes/api/ApiQueryLinks.php +++ b/includes/api/ApiQueryLinks.php @@ -103,7 +103,7 @@ class ApiQueryLinks extends ApiQueryGeneratorBase { if ( $cond ) { $this->addWhere( $cond ); $multiNS = count( $lb->data ) !== 1; - $multiTitle = count( call_user_func_array( 'array_merge', $lb->data ) ) !== 1; + $multiTitle = count( array_merge( ...$lb->data ) ) !== 1; } else { // No titles so no results return; @@ -117,8 +117,8 @@ class ApiQueryLinks extends ApiQueryGeneratorBase { $cont = explode( '|', $params['continue'] ); $this->dieContinueUsageIf( count( $cont ) != 3 ); $op = $params['dir'] == 'descending' ? '<' : '>'; - $plfrom = intval( $cont[0] ); - $plns = intval( $cont[1] ); + $plfrom = (int)$cont[0]; + $plns = (int)$cont[1]; $pltitle = $this->getDB()->addQuotes( $cont[2] ); $this->addWhere( "{$this->prefix}_from $op $plfrom OR " .