mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +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
|
* @return bool
|
||||||
*/
|
*/
|
||||||
function setName($newName) { /* {{{ */
|
function setName($newName) { /* {{{ */
|
||||||
|
$newName = trim($newName);
|
||||||
|
if(!$newName)
|
||||||
|
return false;
|
||||||
|
|
||||||
$db = $this->_dms->getDB();
|
$db = $this->_dms->getDB();
|
||||||
|
|
||||||
$queryStr = "UPDATE `tblGroups` SET `name` = ".$db->qstr($newName)." WHERE `id` = " . $this->_id;
|
$queryStr = "UPDATE `tblGroups` SET `name` = ".$db->qstr($newName)." WHERE `id` = " . $this->_id;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user