mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-30 20:51:22 +00:00 
			
		
		
		
	check if id passed to getKeywordCategory() is greater 0
This commit is contained in:
		
							parent
							
								
									e06cd59f6c
								
							
						
					
					
						commit
						7d7deeb313
					
				|  | @ -2289,7 +2289,7 @@ class SeedDMS_Core_DMS { | |||
| 	} /* }}} */ | ||||
| 
 | ||||
| 	function getKeywordCategory($id) { /* {{{ */ | ||||
| 		if (!is_numeric($id)) | ||||
| 		if (!is_numeric($id) || $id < 1) | ||||
| 			return false; | ||||
| 
 | ||||
| 		$queryStr = "SELECT * FROM `tblKeywordCategories` WHERE `id` = " . (int) $id; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann