* fix the error when edit a user.
This commit is contained in:
@@ -111,7 +111,7 @@ class userModel extends model
|
||||
/* 进行其他的检查,更新数据库。*/
|
||||
$userID = (int)$userID;
|
||||
$user = fixer::input('post')
|
||||
->setDefault('join', '0000-00-00')
|
||||
->setIF(isset($_POST['join']) and $this->post->join == '', 'join', '0000-00-00')
|
||||
->setIF($this->post->password1 != false, 'password', md5($this->post->password1))
|
||||
->remove('password1, password2')
|
||||
->get();
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->user->join;?></th>
|
||||
<td><?php echo html::input('join', '', "class='text-3 date'");?></td>
|
||||
<td><?php echo html::input('join', $user->join, "class='text-3 date'");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class='rowhead'><?php echo $lang->user->gendar;?></th>
|
||||
|
||||
Reference in New Issue
Block a user