fix getCustomerDetail()-query, thx to Sephi
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -20,7 +20,7 @@
|
|||||||
function getCustomerDetail($customerid, $varname) {
|
function getCustomerDetail($customerid, $varname) {
|
||||||
|
|
||||||
$customer_stmt = Database::prepare("
|
$customer_stmt = Database::prepare("
|
||||||
SELECT `' . $varname . '` FROM `" . TABLE_PANEL_CUSTOMERS . "` WHERE `customerid` = :customerid
|
SELECT `" . $varname . "` FROM `" . TABLE_PANEL_CUSTOMERS . "` WHERE `customerid` = :customerid
|
||||||
");
|
");
|
||||||
$customer = Database::pexecute_first($customer_stmt, array('customerid' => $customerid));
|
$customer = Database::pexecute_first($customer_stmt, array('customerid' => $customerid));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user