X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryInfo.php;h=3d358b96a09c86e962f6e5e326b53094c1f0b924;hb=4691389fa46f79cbeaf2daffda407cf7daa66fd4;hp=33d971b90fc3096588145d74d9df7b5c047aeecb;hpb=f9c735e3ed316b8d1601375b68b0a0b60cf06b59;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryInfo.php b/includes/api/ApiQueryInfo.php index 33d971b90f..3d358b96a0 100644 --- a/includes/api/ApiQueryInfo.php +++ b/includes/api/ApiQueryInfo.php @@ -411,8 +411,8 @@ class ApiQueryInfo extends ApiQueryBase { if ( $titleExists ) { $pageInfo['touched'] = wfTimestamp( TS_ISO_8601, $this->pageTouched[$pageid] ); - $pageInfo['lastrevid'] = intval( $this->pageLatest[$pageid] ); - $pageInfo['length'] = intval( $this->pageLength[$pageid] ); + $pageInfo['lastrevid'] = (int)$this->pageLatest[$pageid]; + $pageInfo['length'] = (int)$this->pageLength[$pageid]; if ( isset( $this->pageIsRedir[$pageid] ) && $this->pageIsRedir[$pageid] ) { $pageInfo['redirect'] = true; @@ -738,10 +738,10 @@ class ApiQueryInfo extends ApiQueryBase { foreach ( $res as $row ) { if ( MWNamespace::isTalk( $row->page_namespace ) ) { $this->talkids[MWNamespace::getSubject( $row->page_namespace )][$row->page_title] = - intval( $row->page_id ); + (int)$row->page_id; } else { $this->subjectids[MWNamespace::getTalk( $row->page_namespace )][$row->page_title] = - intval( $row->page_id ); + (int)$row->page_id; } } }