Fixes on fields for new behaviour

This commit is contained in:
Antonio de la Rosa 2015-08-28 05:24:58 +02:00
parent 2a342ad9f9
commit 890704010b
21 changed files with 78 additions and 36 deletions

View file

@ -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);
}