bugfixing admin_customers, damn typos
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -750,7 +750,7 @@ if ($page == 'customers'
|
|||||||
`email_quota` = :email_quota,
|
`email_quota` = :email_quota,
|
||||||
`ftps` = :ftps,
|
`ftps` = :ftps,
|
||||||
`tickets` = :tickets,
|
`tickets` = :tickets,
|
||||||
`mysqls` = :mysql,
|
`mysqls` = :mysqls,
|
||||||
`standardsubdomain` = '0',
|
`standardsubdomain` = '0',
|
||||||
`phpenabled` = :phpenabled,
|
`phpenabled` = :phpenabled,
|
||||||
`imap` = :imap,
|
`imap` = :imap,
|
||||||
@@ -1045,12 +1045,15 @@ if ($page == 'customers'
|
|||||||
&& $id != 0
|
&& $id != 0
|
||||||
) {
|
) {
|
||||||
|
|
||||||
|
$result_data = array('id' => $id);
|
||||||
$result_stmt = Database::prepare("
|
$result_stmt = Database::prepare("
|
||||||
SELECT * FROM `" . TABLE_PANEL_CUSTOMERS . "`
|
SELECT * FROM `" . TABLE_PANEL_CUSTOMERS . "`
|
||||||
WHERE `customerid`= :id " . ($userinfo['customers_see_all'] ? '' : " AND `adminid` = :adminid")
|
WHERE `customerid` = :id" . ($userinfo['customers_see_all'] ? '' : " AND `adminid` = :adminid")
|
||||||
);
|
);
|
||||||
Database::pexecute($result_stmt, array('id' => $id, 'adminid' => $userinfo['adminid']));
|
if ($userinfo['customers_see_all'] == '0') {
|
||||||
$result = $result_stmt->fetch(PDO::FETCH_ASSOC);
|
$result_data['adminid'] = $userinfo['adminid'];
|
||||||
|
}
|
||||||
|
$result = Database::pexecute_first($result_stmt, $result_data);
|
||||||
|
|
||||||
if ($result['loginname'] != '') {
|
if ($result['loginname'] != '') {
|
||||||
|
|
||||||
@@ -1465,7 +1468,7 @@ if ($page == 'customers'
|
|||||||
`email_forwarders` = :email_forwarders,
|
`email_forwarders` = :email_forwarders,
|
||||||
`ftps` = :ftps,
|
`ftps` = :ftps,
|
||||||
`tickets` = :tickets,
|
`tickets` = :tickets,
|
||||||
`mysqls` = :mysql,
|
`mysqls` = :mysqls,
|
||||||
`deactivated` = :deactivated,
|
`deactivated` = :deactivated,
|
||||||
`phpenabled` = :phpenabled,
|
`phpenabled` = :phpenabled,
|
||||||
`email_quota` = :email_quota,
|
`email_quota` = :email_quota,
|
||||||
|
|||||||
Reference in New Issue
Block a user