mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
check if parameter of setNoAccess() is set before using it
This commit is contained in:
parent
76beca23c6
commit
b80cb91d54
|
@ -169,7 +169,7 @@ class SeedDMS_Core_Role { /* {{{ */
|
|||
function setNoAccess($noaccess) { /* {{{ */
|
||||
$db = $this->_dms->getDB();
|
||||
|
||||
$queryStr = "UPDATE tblRoles SET noaccess = " . $db->qstr(implode(',',$noaccess)) . " WHERE id = " . $this->_id;
|
||||
$queryStr = "UPDATE tblRoles SET noaccess = " . $db->qstr($noaccess ? implode(',',$noaccess) : '') . " WHERE id = " . $this->_id;
|
||||
if (!$db->getResult($queryStr))
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user