mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-30 20:51:22 +00:00 
			
		
		
		
	check if attachment could be imported
This commit is contained in:
		
							parent
							
								
									9d37187e43
								
							
						
					
					
						commit
						59309b7db8
					
				|  | @ -811,11 +811,11 @@ function insert_document($document) { /* {{{ */ | |||
| 					$file['attributes']['version'], | ||||
| 					$file['attributes']['public'] | ||||
| 				); | ||||
| 				$d = dateToTimestamp($file['attributes']['date']); | ||||
| 				if($d) | ||||
| 					$newfile->setDate($d); | ||||
| 				else | ||||
| 					$logger->warning("File date (".$file['attributes']['date'].") could not be parsed."); | ||||
| 				if($newfile) { | ||||
| 					$newfile->setDate(dateToTimestamp($file['attributes']['date'])); | ||||
| 				} else { | ||||
| 					$logger->error("File ".$file['attributes']['name']." could not be added."); | ||||
| 				} | ||||
| 				unlink($filename); | ||||
| 			} | ||||
| 		} | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann