From fd7b50a9760eea420aa173063ca7e3233899d439 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Wed, 03 Mar 2010 06:19:28 -0500
Subject: [PATCH] Implemented: FS#1094 - Add a realname field to the mailbox settings.
---
interface/lib/classes/remoting_lib.inc.php | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/interface/lib/classes/remoting_lib.inc.php b/interface/lib/classes/remoting_lib.inc.php
index 503a982..38d9010 100644
--- a/interface/lib/classes/remoting_lib.inc.php
+++ b/interface/lib/classes/remoting_lib.inc.php
@@ -150,6 +150,7 @@
$this->sys_groups = 1;
} else {
//* load system user - try with sysuser and before with userid (workarrond)
+ /*
$user = $app->db->queryOneRecord("SELECT * FROM sys_user WHERE sysuser_id = $client_id");
if(empty($user["userid"])) {
$user = $app->db->queryOneRecord("SELECT * FROM sys_user WHERE userid = $client_id");
@@ -157,7 +158,9 @@
$this->errorMessage .= "No sysuser with the ID $client_id found.";
return false;
}
- }
+ }*/
+
+ $user = $app->db->queryOneRecord("SELECT * FROM sys_user WHERE client_id = $client_id");
$this->sys_username = $user['username'];
$this->sys_userid = $user['userid'];
$this->sys_default_group = $user['default_group'];
--
Gitblit v1.9.1