Allow album to be empty string thus defaulting to i10n "Wall Photos" like in UI
This commit is contained in:
		
					parent
					
						
							
								94801986b6
							
						
					
				
			
			
				commit
				
					
						8f56aa316b
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -64,8 +64,8 @@ class Create extends BaseApi
 | 
			
		|||
 | 
			
		||||
		// do several checks on input parameters
 | 
			
		||||
		// we do not allow calls without album string
 | 
			
		||||
		if ($album == null) {
 | 
			
		||||
			throw new HTTPException\BadRequestException('no albumname specified');
 | 
			
		||||
		if ($album === null) {
 | 
			
		||||
			throw new HTTPException\BadRequestException('no album name specified');
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		// error if no media posted in create-mode
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue