mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 13:18:06 +00:00 
			
		
		
		
	check if metadata is set before using it
This commit is contained in:
		
							parent
							
								
									f9bcb94925
								
							
						
					
					
						commit
						4f9f5cb3a9
					
				|  | @ -174,10 +174,10 @@ function import_folder($dirname, $folder, $setfiledate, $setfolderdate, $metadat | |||
| 
 | ||||
| 				echo $mimetype." - ".$filetype." - ".$path."<br />\n"; | ||||
| 				if($res = $folder->addDocument($docname, $comment, $expires, $owner, $keywords, | ||||
| 																		$metadata[$path]['category'], $filetmp, $name, | ||||
| 																		!empty($metadata[$path]['category']) ? $metadata[$path]['category'] : array(), $filetmp, $name, | ||||
| 																		$filetype, $mimetype, $sequence, $reviewers, | ||||
| 																		$approvers, $reqversion, $version_comment, | ||||
| 																	 	$metadata[$path]['attributes'])) { | ||||
| 																	 	!empty($metadata[$path]['attributes']) ? $metadata[$path]['attributes'] : array())) { | ||||
| 					$doccount++; | ||||
| 					if($setfiledate) { | ||||
| 						$newdoc = $res[0]; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann