Skip to content

Commit

Permalink
Merge branch 'hotfix/UserAdmin/_POST_enabled/boolean' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
osben committed Mar 19, 2016
2 parents c2c26d8 + 1a4a49f commit 853fd26
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions simpla/UserAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@ public function fetch()
if(!empty($_POST['user_info']))
{
$user->id = $this->request->post('id', 'integer');
$user->enabled = $this->request->post('enabled');
$user->enabled = $this->request->post('enabled', 'boolean');
$user->name = $this->request->post('name');
$user->email = $this->request->post('email');
$user->group_id = $this->request->post('group_id');

## Не допустить одинаковые email пользователей.
if(empty($user->name))
{
$this->design->assign('message_error', 'empty_name');
Expand Down

0 comments on commit 853fd26

Please sign in to comment.