fix typo in field-value for ApiCommand::getUserDetail()

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2018-02-26 16:00:54 +01:00
parent 55ec20be10
commit 257855b43b
2 changed files with 4 additions and 4 deletions

View File

@@ -87,7 +87,7 @@ class Mysqls extends ApiCommand implements ResourceEntity
throw new Exception("Customer has no more resources available", 406);
}
} else {
$customer_id = $this->getUserDetail('customer_id');
$customer_id = $this->getUserDetail('customerid');
}
$newdb_params = array(
@@ -389,7 +389,7 @@ class Mysqls extends ApiCommand implements ResourceEntity
throw new Exception("Customer has no more resources available", 406);
}
} else {
$customer_id = $this->getUserDetail('customer_id');
$customer_id = $this->getUserDetail('customerid');
}
if ($password != '') {
@@ -585,7 +585,7 @@ class Mysqls extends ApiCommand implements ResourceEntity
$customer_id = $customer['customer_id'];
} else {
$mysql_used = $this->getUserDetail('mysqls_used');
$customer_id = $this->getUserDetail('customer_id');
$customer_id = $this->getUserDetail('customerid');
}
// reduce mysql-usage-counter
$resetaccnumber = ($mysql_used == '1') ? " , `mysql_lastaccountnumber` = '0' " : '';