From f73bb61c04c2ab46b7d4950f604e6cf84a42d78c Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Sun, 19 Aug 2007 09:29:20 -0400
Subject: [PATCH] Fixed a strict error in tform.inc.php and tform_actions.inc.php

---
 interface/web/client/client_edit.php |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/interface/web/client/client_edit.php b/interface/web/client/client_edit.php
index 68b8d3a..473de4b 100644
--- a/interface/web/client/client_edit.php
+++ b/interface/web/client/client_edit.php
@@ -66,7 +66,7 @@
 		
 		$username = addslashes($this->dataRecord["username"]);
 		$password = addslashes($this->dataRecord["password"]);
-		$modules = 'mail';
+		$modules = 'mail,sites,dns';
 		$startmodule = 'mail';
 		$usertheme = addslashes($this->dataRecord["usertheme"]);
 		$type = 'user';
@@ -100,7 +100,9 @@
 		// password changed
 		if($this->dataRecord["password"] != '') {
 			$password = addslashes($this->dataRecord["password"]);
+			$client_id = $this->id;
 			$sql = "UPDATE sys_user SET passwort = md5('$password') WHERE client_id = $client_id";
+			$app->db->query($sql);
 		}
 		
 		

--
Gitblit v1.9.1