mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-08 20:46:05 +00:00
check if login != '' in setLogin()
This commit is contained in:
parent
578aa30bc5
commit
851e81a9b9
|
@ -292,6 +292,10 @@ class SeedDMS_Core_User { /* {{{ */
|
|||
* @return bool
|
||||
*/
|
||||
function setLogin($newLogin) { /* {{{ */
|
||||
$newLogin = trim($newLogin);
|
||||
if(!$newLogin)
|
||||
return false;
|
||||
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE `tblUsers` SET `login` =".$db->qstr($newLogin)." WHERE `id` = " . $this->_id;
|
||||
|
|
Loading…
Reference in New Issue
Block a user