mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-21 04:09:55 +09:00
fixed insert member without user_id
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9321 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
520e5fac7e
commit
fb88af5738
1 changed files with 4 additions and 2 deletions
|
|
@ -1576,8 +1576,11 @@
|
|||
$logged_info = Context::get('logged_info');
|
||||
// If the date of the temporary restrictions limit further information on the date of
|
||||
if($config->limit_day) $args->limit_date = date("YmdHis", time()+$config->limit_day*60*60*24);
|
||||
|
||||
$args->member_srl = getNextSequence();
|
||||
// Enter the user's identity changed to lowercase
|
||||
$args->user_id = strtolower($args->user_id);
|
||||
if (!$args->user_id) $args->user_id = 't'.$args->member_srl;
|
||||
else $args->user_id = strtolower($args->user_id);
|
||||
// Control of essential parameters
|
||||
if($args->allow_mailing!='Y') $args->allow_mailing = 'N';
|
||||
if($args->denied!='Y') $args->denied = 'N';
|
||||
|
|
@ -1610,7 +1613,6 @@
|
|||
$oDB = &DB::getInstance();
|
||||
$oDB->begin();
|
||||
// Insert data into the DB
|
||||
$args->member_srl = getNextSequence();
|
||||
$args->list_order = -1 * $args->member_srl;
|
||||
$args->nick_name = htmlspecialchars($args->nick_name);
|
||||
$args->homepage = htmlspecialchars($args->homepage);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue