lewsid / chargify-php

Chargify API wrapper for PHP
http://chargify.com
6 stars 1 forks source link

This code does not load product_family data #1

Closed vectoroc closed 14 years ago

vectoroc commented 14 years ago

http://github.com/lewsid/chargify_api_php/blob/master/lib/ChargifyProduct.php#L18

here is my monkey patch

foreach($product_xml_node as $key => $element) {
  if (count($element)) {
    foreach($element as $childname => $child) {
      $this->{$key}[$childname] = (string)$child;
    }
  } 
  else {
    $this->$key = (string)$element;
  }
lewsid commented 14 years ago

I'll roll it in. Thanks!