mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 05:11:27 +00:00 
			
		
		
		
	check if version is set
This commit is contained in:
		
							parent
							
								
									675648ef20
								
							
						
					
					
						commit
						007f7c7f2c
					
				|  | @ -80,10 +80,12 @@ for ($file_num=0;$file_num<count($_FILES["userfile"]["tmp_name"]);$file_num++){ | |||
| 	$version  = (int) $_POST["version"]; | ||||
| 	$public  = (isset($_POST["public"]) && $_POST["public"] == 'true') ? 1 : 0; | ||||
| 
 | ||||
| 	if($version) { | ||||
| 		$v = $document->getContentByVersion($version); | ||||
| 		if(!$v) { | ||||
| 			UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("error_occured")); | ||||
| 		} | ||||
| 	} | ||||
| 
 | ||||
| 	$userfiletmp = $_FILES["userfile"]["tmp_name"][$file_num]; | ||||
| 	$userfiletype = $_FILES["userfile"]["type"][$file_num]; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann