From f6d69fcd72522578e817fa447b899811460f51b4 Mon Sep 17 00:00:00 2001 From: Daniel Hromada Date: Wed, 16 Mar 2011 00:18:58 +0100 Subject: [PATCH] final registration fix, I hope --- wwwroot/inc/eventz/register.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wwwroot/inc/eventz/register.inc b/wwwroot/inc/eventz/register.inc index fa9f983..83c0f73 100644 --- a/wwwroot/inc/eventz/register.inc +++ b/wwwroot/inc/eventz/register.inc @@ -54,6 +54,7 @@ function register() { // XXX hard-coded $params['node_parent'] = UNVERIFIED_REGISTRATIONS_NODE; // registrations_noverified forum $params['node_name'] = 'request for access'; + $params['node_creator']=UBIK_ID; $params['flag'] = 'registration'; $user_id = nodes::addNode($params); @@ -61,7 +62,7 @@ function register() { //puttin in the guild node is realized only after email verification //nodes::putNode($user_id,$guild_id); - $q = sprintf('update nodes set node_system_access = "private" where node_id = %d', $user_id); + $q = sprintf('update nodes set node_system_access = "private",node_creator=%d where node_id = %d', $user_id,$user_id); $db->update($q); $pass = md5($pass); -- 2.30.2