From 4018f00fb4c3cf2bd428409f10b574d147ca3534 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Thu, 5 Feb 2009 15:46:30 +0000 Subject: [PATCH] Fix regression from r46845 which broke ApiResult::cleanUpUTF8() and caused an E_NOTICE --- includes/api/ApiResult.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/api/ApiResult.php b/includes/api/ApiResult.php index 3a1585d505..86a8d1db19 100644 --- a/includes/api/ApiResult.php +++ b/includes/api/ApiResult.php @@ -275,8 +275,7 @@ class ApiResult extends ApiBase { */ public function cleanUpUTF8() { - $data = & $this->getData(); - array_walk_recursive($data, array('ApiResult', 'cleanUp_helper')); + array_walk_recursive($this->mData, array('ApiResult', 'cleanUp_helper')); } private static function cleanUp_helper($s) -- 2.20.1