// fix for Nokia Series 60 which seem to send empty data block sometimes

This commit is contained in:
Lars Kneschke 2006-08-15 14:40:34 +00:00
parent 117fd9d31b
commit 072b6966d2

View File

@ -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;