mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 09:35:00 +00:00
trim name in setName()
This commit is contained in:
parent
7a5123aa6c
commit
3101d6d952
|
@ -162,6 +162,10 @@ class SeedDMS_Core_Group { /* {{{ */
|
|||
* @return bool
|
||||
*/
|
||||
function setName($newName) { /* {{{ */
|
||||
$newName = trim($newName);
|
||||
if(!$newName)
|
||||
return false;
|
||||
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE `tblGroups` SET `name` = ".$db->qstr($newName)." WHERE `id` = " . $this->_id;
|
||||
|
|
Loading…
Reference in New Issue
Block a user