Index: xmlrpc.php
===================================================================
--- xmlrpc.php	(revision 5899)
+++ xmlrpc.php	(working copy)
@@ -1033,7 +1033,7 @@
 
 		if(isset($content_struct["mt_allow_pings"])) {
 			if(!is_numeric($content_struct["mt_allow_pings"])) {
-				switch($content["mt_allow_pings"]) {
+				switch($content_struct["mt_allow_pings"]) {
 					case "closed":
 						$ping_status = "closed";
 						break;
@@ -1245,7 +1245,7 @@
 
 		if(isset($content_struct["mt_allow_pings"])) {
 			if(!is_numeric($content_struct["mt_allow_pings"])) {
-				switch($content["mt_allow_pings"]) {
+				switch($content_struct["mt_allow_pings"]) {
 					case "closed":
 						$ping_status = "closed";
 						break;

