move_to_admin is not a binary value, fixes #637

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2019-01-16 19:21:50 +01:00
parent 5ecb43ba73
commit de33ec509b

View File

@@ -836,7 +836,7 @@ class Customers extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resource
if ($this->isAdmin()) {
// parameters
$move_to_admin = (int) ($this->getBoolParam('move_to_admin', true, 0));
$move_to_admin = (int) ($this->getParam('move_to_admin', true, 0));
$idna_convert = new \Froxlor\Idna\IdnaWrapper();
$email = $this->getParam('email', true, $idna_convert->decode($result['email']));