fix sql variable in Admins.delete

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2018-03-04 12:44:31 +01:00
parent b12392f0a9
commit b664917147

View File

@@ -642,7 +642,7 @@ class Admins extends ApiCommand implements ResourceEntity
// delete old admin's api keys if exists (no customer keys) // delete old admin's api keys if exists (no customer keys)
$upd_stmt = Database::prepare(" $upd_stmt = Database::prepare("
DELETE FROM `" . TABLE_API_KEYS . "` WHERE DELETE FROM `" . TABLE_API_KEYS . "` WHERE
`adminid` = :userid AND `customerid` = '0' `adminid` = :adminid AND `customerid` = '0'
"); ");
Database::pexecute($upd_stmt, array( Database::pexecute($upd_stmt, array(
'adminid' => $id 'adminid' => $id