From: Daniel Hromada Date: Tue, 15 Mar 2011 23:18:58 +0000 (+0100) Subject: final registration fix, I hope X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=f6d69fcd72522578e817fa447b899811460f51b4;p=mirrors%2FKyberia-bloodline.git final registration fix, I hope --- 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);