Skip to content

Commit 63d1be2

Browse files
committed
Undone the change from the previous commit.
1 parent 1c5959a commit 63d1be2

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

interface/web/client/client_edit.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,15 +135,18 @@ function onAfterUpdate() {
135135
if($this->oldDataRecord['username'] != $this->dataRecord['username']) {
136136
$username = mysql_real_escape_string($this->dataRecord["username"]);
137137
$client_id = $this->id;
138-
$app->db->datalogUpdate('sys_user', "username = '$username'", 'client_id', $client_id);
139-
$app->db->datalogUpdate('sys_group', "name = '$username'", 'client_id', $client_id);
138+
$sql = "UPDATE sys_user SET username = '$username' WHERE client_id = $client_id";
139+
$app->db->query($sql);
140+
$sql = "UPDATE sys_group SET name = '$username' WHERE client_id = $client_id";
141+
$app->db->query($sql);
140142
}
141143

142144
// password changed
143145
if(isset($this->dataRecord["password"]) && $this->dataRecord["password"] != '') {
144146
$password = mysql_real_escape_string($this->dataRecord["password"]);
145147
$client_id = $this->id;
146-
$app->db->datalogUpdate('sys_user', "passwort = md5('$password')", 'client_id', $client_id);
148+
$sql = "UPDATE sys_user SET passwort = md5('$password') WHERE client_id = $client_id";
149+
$app->db->query($sql);
147150
}
148151

149152
// reseller status changed
@@ -152,7 +155,8 @@ function onAfterUpdate() {
152155
if($this->dataRecord["limit_client"] > 0) $modules .= ',client';
153156
$modules = mysql_real_escape_string($modules);
154157
$client_id = $this->id;
155-
$app->db->datalogUpdate('sys_user', "modules = '$modules'", 'client_id', $client_id);
158+
$sql = "UPDATE sys_user SET modules = '$modules' WHERE client_id = $client_id";
159+
$app->db->query($sql);
156160
}
157161
/*
158162
* If there is a client-template, process it */

0 commit comments

Comments
 (0)