From fa91c7b6425efd66e02f37139e8f2b21fd451b13 Mon Sep 17 00:00:00 2001 From: markjaquith Date: Sat, 21 Oct 2006 10:42:42 +0000 Subject: [PATCH] Cast to array in xmlrpc.php. fixes #3266 git-svn-id: http://svn.automattic.com/wordpress/trunk@4412 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- xmlrpc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmlrpc.php b/xmlrpc.php index c937122ddc..d207525adb 100644 --- a/xmlrpc.php +++ b/xmlrpc.php @@ -134,7 +134,7 @@ class wp_xmlrpc_server extends IXR_Server { function escape(&$array) { global $wpdb; - foreach ($array as $k => $v) { + foreach ( (array) $array as $k => $v ) { if (is_array($v)) { $this->escape($array[$k]); } else if (is_object($v)) {