Skip to content

Instantly share code, notes, and snippets.

@dmjarvis
Created September 30, 2012 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmjarvis/3807100 to your computer and use it in GitHub Desktop.
Save dmjarvis/3807100 to your computer and use it in GitHub Desktop.
How to get GravityForms CapsuleCRM to work on PHP less than 5.3
if (0 !== $size && false !== $id) {
$this->update($entity, $id, $data);
} else {
$id = $this->create($entity, $data);
};
break;
case "create":
//create:
$id = $this->create($entity, $data);
//sleep(5);
break;
case "update":
//update:
$this->update($entity, $id, $data);
//sleep(5);
break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment