mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-28 12:38:00 +00:00
- fixed sql statement to insert a new user
This commit is contained in:
parent
452221fe2b
commit
258315b6be
|
@ -940,7 +940,7 @@ class LetoDMS_Core_DMS {
|
||||||
}
|
}
|
||||||
if($role == '')
|
if($role == '')
|
||||||
$role = '0';
|
$role = '0';
|
||||||
$queryStr = "INSERT INTO tblUsers (login, pwd, fullName, email, language, theme, comment, role, hidden, disable, pwdExpiration) VALUES ('".$login."', '".$pwd."', '".$fullName."', '".$email."', '".$language."', '".$theme."', '".$comment."', '".$role."', '".$isHidden."', '".$isDisabled."', '".$pwdexpiration."')";
|
$queryStr = "INSERT INTO tblUsers (login, pwd, fullName, email, language, theme, comment, role, hidden, disabled, pwdExpiration) VALUES ('".$login."', '".$pwd."', '".$fullName."', '".$email."', '".$language."', '".$theme."', '".$comment."', '".$role."', '".$isHidden."', '".$isDisabled."', '".$pwdexpiration."')";
|
||||||
$res = $this->db->getResult($queryStr);
|
$res = $this->db->getResult($queryStr);
|
||||||
if (!$res)
|
if (!$res)
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user