From 864e6c613970087339c76b31acdf6c0f6a605404 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Mon, 4 Nov 2013 22:29:50 +0100 Subject: [PATCH] fix typo in replacer-variable in customer-extras Signed-off-by: Michael Kaufmann (d00p) --- customer_extras.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/customer_extras.php b/customer_extras.php index b75a97e6..7b7c0e6d 100644 --- a/customer_extras.php +++ b/customer_extras.php @@ -169,16 +169,19 @@ if($page == 'overview') { } elseif($path == '') { standard_error('patherror'); } else { - $stmt = Database::prepare("INSERT INTO `" . TABLE_PANEL_HTPASSWDS . "` - (`customerid`, `username`, `password`, `path`, `authname`) - VALUES (:customerid, :username, :password, :path, :authname)" + $stmt = Database::prepare("INSERT INTO `" . TABLE_PANEL_HTPASSWDS . "` SET + `customerid` = :customerid, + `username` = :username, + `password` = :password, + `path` = :path, + `authname` = :authname" ); $params = array( "customerid" => $userinfo['customerid'], "username" => $username, "password" => $password, "path" => $path, - "autname" => $authname + "authname" => $authname ); Database::pexecute($stmt, $params); $log->logAction(USR_ACTION, LOG_INFO, "added htpasswd for '" . $username . " (" . $path . ")'");