diff options
| author | David Sommerseth <dazo@users.sourceforge.net> | 2008-12-17 22:47:47 +0100 |
|---|---|---|
| committer | David Sommerseth <dazo@users.sourceforge.net> | 2008-12-17 22:47:47 +0100 |
| commit | 6c59358d8decc300d176e3eea5f46eaffe4be117 (patch) | |
| tree | bcdc409d470349373311aa8cda3b65920ffbab32 /database/sqlite | |
| parent | 31911812e53a8fda5ce8fa8e9d45254053a580c5 (diff) | |
| download | eurephia-6c59358d8decc300d176e3eea5f46eaffe4be117.tar.gz eurephia-6c59358d8decc300d176e3eea5f46eaffe4be117.tar.xz eurephia-6c59358d8decc300d176e3eea5f46eaffe4be117.zip | |
Updated eAdminGetUserInfo(...) work after commit
31911812e53a8fda5ce8fa8e9d45254053a580c5
Diffstat (limited to 'database/sqlite')
| -rw-r--r-- | database/sqlite/administration.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/database/sqlite/administration.c b/database/sqlite/administration.c index 7e1855f..576ddb2 100644 --- a/database/sqlite/administration.c +++ b/database/sqlite/administration.c @@ -37,6 +37,7 @@ #include <eurephia_admin_struct.h> #include <eurephia_admin_common.h> #include <eurephia_log.h> +#include <eurephia_xml.h> #include <eurephia_values.h> #include <eurephiadb_session_struct.h> #include <eurephiadb_mapping.h> @@ -418,9 +419,10 @@ xmlDoc *eDBadminGetUserInfo(eurephiaCTX *ctx, int getInfo, xmlDoc *srch) { int flag = 0, uid = 0; xmlDoc *doc = NULL; - xmlNode *root_n = NULL, *info_n = NULL; + xmlNode *root_n = NULL, *info_n = NULL, *fieldmap = NULL; - uinfo_map = eDBxmlMapping(ctx, tbl_sqlite_users, "u", srch); + fieldmap = eurephiaXML_getRoot(ctx, srch, "fieldMapping", 1); + uinfo_map = eDBxmlMapping(ctx, tbl_sqlite_users, "u", fieldmap); // Query the database, find the user defined in the user map uinf = sqlite_query_mapped(ctx, SQL_SELECT, |
