diff --git a/QuickBooks/XML.php b/QuickBooks/XML.php index 3fc0b842..fff20b9b 100755 --- a/QuickBooks/XML.php +++ b/QuickBooks/XML.php @@ -309,7 +309,7 @@ static public function extractTagAttributes($tag_w_attrs, $return_tag_first = fa for ($i = 0; $i < $length; $i++) { - if ($attrs{$i} == '=') + if ($attrs[$i] == '=') { $in_key = false; $in_value = false; @@ -322,13 +322,13 @@ static public function extractTagAttributes($tag_w_attrs, $return_tag_first = fa $expect_value = false; } */ - /*else if ($attrs{$i} == '"' and $in_value)*/ - else if (($attrs{$i} == '"' or $attrs{$i} == '\'') and $expect_value) + /*else if ($attrs[$i] == '"' and $in_value)*/ + else if (($attrs[$i] == '"' or $attrs[$i] == '\'') and $expect_value) { $in_value = true; $expect_value = false; } - else if (($attrs{$i} == '"' or $attrs{$i} == '\'') and $in_value) + else if (($attrs[$i] == '"' or $attrs[$i] == '\'') and $in_value) { $attributes[trim($key)] = $value; @@ -338,18 +338,18 @@ static public function extractTagAttributes($tag_w_attrs, $return_tag_first = fa $in_value = false; $expect_key = true; } - else if ($attrs{$i} == ' ' and $expect_key) + else if ($attrs[$i] == ' ' and $expect_key) { $expect_key = false; $in_key = true; } else if ($in_key) { - $key .= $attrs{$i}; + $key .= $attrs[$i]; } else if ($in_value) { - $value .= $attrs{$i}; + $value .= $attrs[$i]; } }