save_pod_item() not returning the right value!

0

hey guys im tryin out this code it worked fine earlier, just that now it doesn't

$api = new PodAPI();

$columns_person['name'] = 'test';
$columns_person['day'] = 'wednesday';

$params = array('datatype' => 'person', 'columns' => $columns_person);

$person_id = $api->save_pod_item($params)

if(!empty($person_id))
{
  echo "New Person Has been Added";
}
else
{
  echo "Failed to Add New Person";
}

apparently this worked fine before the recent updates to 1.9.2 or so, but as of now what this manages to do is insert the pod item but prints "Failed to Add New Person", is this a bug of some sort?

asked Oct 6 '10 at 10:06

acenik

1

add comment
enter at least 15 characters

1 Answer

0

Is "php_value zend.ze1_compatibility_mode" set to "On" in your php-config? Set it to "Off", worked for me.

answered Oct 18 '10 at 3:32

lenzcom

36

add comment
enter at least 15 characters