mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 05:11:27 +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
	 Uwe Steinmann
						Uwe Steinmann