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