bugfixing admin_customers, damn typos

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2013-11-06 11:29:40 +01:00
parent 04012e5fff
commit 941a391c0e

View File

@@ -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,