diff --git a/lib/classes/api/commands/class.Customers.php b/lib/classes/api/commands/class.Customers.php index 00a03997..2ce4bbae 100644 --- a/lib/classes/api/commands/class.Customers.php +++ b/lib/classes/api/commands/class.Customers.php @@ -96,7 +96,7 @@ class Customers extends ApiCommand implements ResourceEntity // parameters $name = $this->getParam('name', true, ''); $firstname = $this->getParam('firstname', true, ''); - $company_required = (empty($name) && empty($first)); + $company_required = (empty($name) && empty($firstname)); $company = $this->getParam('company', $company_required, ''); $street = $this->getParam('street', true, ''); $zipcode = $this->getParam('zipcode', true, '');