From: Reedy Date: Thu, 31 Jul 2014 14:24:58 +0000 (+0100) Subject: list=logevent userid is returned as string, should be integer X-Git-Tag: 1.31.0-rc.0~14646 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=58f369557dcd5e070b42d3219777c8201aa85baf;p=lhc%2Fweb%2Fwiklou.git list=logevent userid is returned as string, should be integer Bug: 68921 Change-Id: Ibdc771cfc3286f8f20f64a2817a2ef01d4b1f8ad --- diff --git a/includes/api/ApiQueryLogEvents.php b/includes/api/ApiQueryLogEvents.php index d79deec3dc..7cd8aacd19 100644 --- a/includes/api/ApiQueryLogEvents.php +++ b/includes/api/ApiQueryLogEvents.php @@ -403,7 +403,7 @@ class ApiQueryLogEvents extends ApiQueryBase { $vals['user'] = $row->user_name === null ? $row->log_user_text : $row->user_name; } if ( $this->fld_userid ) { - $vals['userid'] = $row->log_user; + $vals['userid'] = intval( $row->log_user ); } if ( !$row->log_user ) {