From 072b6966d2027c4467b30eab03e9c22de4d2ccda Mon Sep 17 00:00:00 2001 From: Lars Kneschke Date: Tue, 15 Aug 2006 14:40:34 +0000 Subject: [PATCH] // fix for Nokia Series 60 which seem to send empty data block sometimes --- phpgwapi/inc/horde/XML/WBXML/Decoder.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/phpgwapi/inc/horde/XML/WBXML/Decoder.php b/phpgwapi/inc/horde/XML/WBXML/Decoder.php index 4a92f26858..dfbe9f1c22 100644 --- a/phpgwapi/inc/horde/XML/WBXML/Decoder.php +++ b/phpgwapi/inc/horde/XML/WBXML/Decoder.php @@ -133,6 +133,11 @@ class XML_WBXML_Decoder extends XML_WBXML_ContentHandler { */ function decode($wbxml) { + // fix for Nokia Series 60 which seem to send empty data block sometimes + if(strlen($wbxml) == 0) { + return true; + } + $this->_error = false; // reset state $this->_strpos = 0;