|  | @@ -458,8 +458,8 @@ view = {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  			lychee.imageview.html(build.imageview(photo.json, photo.isSmall(), visible.controls()));
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -			if ((album.json&&album.json.content[photo.getID()]&&album.json.content[photo.getID()].nextPhoto==="")||lychee.viewMode) $("a#next").hide();
 | 
	
		
			
				|  |  | -			if ((album.json&&album.json.content[photo.getID()]&&album.json.content[photo.getID()].previousPhoto==="")||lychee.viewMode) $("a#previous").hide();
 | 
	
		
			
				|  |  | +			if ((album.json&&album.json.content&&album.json.content[photo.getID()]&&album.json.content[photo.getID()].nextPhoto==="")||lychee.viewMode) $("a#next").hide();
 | 
	
		
			
				|  |  | +			if ((album.json&&album.json.content&&album.json.content[photo.getID()]&&album.json.content[photo.getID()].previousPhoto==="")||lychee.viewMode) $("a#previous").hide();
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		},
 | 
	
		
			
				|  |  |  
 |