Mercurial > defr > drupal > core
comparison includes/xmlrpc.inc @ 5:2427550111ae 6.2
Drupal 6.2
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Tue, 23 Dec 2008 14:30:08 +0100 |
parents | c1f4ac30525a |
children | fff6d4c8c043 |
comparison
equal
deleted
inserted
replaced
4:d94886ac61a0 | 5:2427550111ae |
---|---|
1 <?php | 1 <?php |
2 // $Id: xmlrpc.inc,v 1.47 2008/01/09 21:52:43 goba Exp $ | 2 // $Id: xmlrpc.inc,v 1.47.2.1 2008/03/21 22:12:56 goba Exp $ |
3 | 3 |
4 /** | 4 /** |
5 * @file | 5 * @file |
6 * Drupal XML-RPC library. Based on the IXR - The Incutio XML-RPC Library - (c) Incutio Ltd 2002-2005 | 6 * Drupal XML-RPC library. Based on the IXR - The Incutio XML-RPC Library - (c) Incutio Ltd 2002-2005 |
7 * Version 1.7 (beta) - Simon Willison, 23rd May 2005 | 7 * Version 1.7 (beta) - Simon Willison, 23rd May 2005 |
254 $value_flag = TRUE; | 254 $value_flag = TRUE; |
255 break; | 255 break; |
256 case 'value': | 256 case 'value': |
257 // If no type is indicated, the type is string | 257 // If no type is indicated, the type is string |
258 // We take special care for empty values | 258 // We take special care for empty values |
259 if (trim($xmlrpc_message->current_tag_contents) != '' || $xmlrpc_message->last_open == 'value') { | 259 if (trim($xmlrpc_message->current_tag_contents) != '' || (isset($xmlrpc_message->last_open) && ($xmlrpc_message->last_open == 'value'))) { |
260 $value = (string)$xmlrpc_message->current_tag_contents; | 260 $value = (string)$xmlrpc_message->current_tag_contents; |
261 $value_flag = TRUE; | 261 $value_flag = TRUE; |
262 } | 262 } |
263 unset($xmlrpc_message->last_open); | 263 unset($xmlrpc_message->last_open); |
264 break; | 264 break; |