* fix the error when edit a user.

This commit is contained in:
wangchunsheng
2010-04-28 01:25:48 +00:00
parent b965dcd1bb
commit 507e1bd749
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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();
+1 -1
View File
@@ -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>