|  |  | @@ -378,7 +378,7 @@ function GetDDImage($litpic, $picname, $isremote) | 
		
	
		
			
			|  |  |  | $img = $cfg_basedir.$litpic; | 
		
	
		
			
			|  |  |  | } else { | 
		
	
		
			
			|  |  |  | $picname = trim($picname); | 
		
	
		
			
			|  |  |  | if ($isremote == 1 && preg_match("#^http:\/\/#i", $picname)) { | 
		
	
		
			
			|  |  |  | if ($isremote == 1 && preg_match("#^(http|https):\/\/#i", $picname)) { | 
		
	
		
			
			|  |  |  | $litpic = $picname; | 
		
	
		
			
			|  |  |  | $ddinfos = GetRemoteImage($litpic, $cuserLogin->getUserID()); | 
		
	
		
			
			|  |  |  | if (!is_array($ddinfos)) { | 
		
	
	
		
			
				|  |  | @@ -390,7 +390,7 @@ function GetDDImage($litpic, $picname, $isremote) | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | } else { | 
		
	
		
			
			|  |  |  | if ($litpic == 'ddfirst' && !preg_match("#^http:\/\/#i", $picname)) { | 
		
	
		
			
			|  |  |  | if ($litpic == 'ddfirst' && !preg_match("#^(http|https):\/\/#i", $picname)) { | 
		
	
		
			
			|  |  |  | $oldpic = $cfg_basedir.$picname; | 
		
	
		
			
			|  |  |  | $litpic = str_replace('.', '-ty.', $picname); | 
		
	
		
			
			|  |  |  | @ImageResizeNew($oldpic, $cfg_ddimg_width, $cfg_ddimg_height, $cfg_basedir.$litpic); | 
		
	
	
		
			
				|  |  | 
 |