fix typo in variable name

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2018-02-20 14:14:47 +01:00
parent 6bcfb81c6c
commit 033393880d

View File

@@ -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, '');