Fixes on fields for new behaviour
This commit is contained in:
parent
2a342ad9f9
commit
890704010b
21 changed files with 78 additions and 36 deletions
|
|
@ -66,6 +66,15 @@ class UserPhangoModel extends Webmodel {
|
|||
if(isset($post[$this->username]) && $post[$this->email])
|
||||
{
|
||||
|
||||
if(!isset($post['IdUser_admin']))
|
||||
{
|
||||
|
||||
settype($_GET['IdUser_admin'], 'integer');
|
||||
|
||||
$post['IdUser_admin']=$_GET['IdUser_admin'];
|
||||
|
||||
}
|
||||
|
||||
if($this->check_user_exists($post[$this->username], $post[$this->email], $post['IdUser_admin']))
|
||||
{
|
||||
|
||||
|
|
@ -87,7 +96,7 @@ class UserPhangoModel extends Webmodel {
|
|||
unset($post[$this->password]);
|
||||
|
||||
}
|
||||
|
||||
|
||||
return parent::update($post, $safe_query);
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue