cleanup
This commit is contained in:
		
					parent
					
						
							
								82cf664920
							
						
					
				
			
			
				commit
				
					
						ee42c3be94
					
				
			
		
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -12,7 +12,7 @@ function follow_init(&$a) {
 | 
			
		|||
	}
 | 
			
		||||
 | 
			
		||||
	$uid = local_user();
 | 
			
		||||
	$url = $orig_url = notags(trim($_REQUEST['url']));
 | 
			
		||||
	$url = notags(trim($_REQUEST['url']));
 | 
			
		||||
	$return_url = $_SESSION['return_url'];
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -24,6 +24,8 @@ function follow_init(&$a) {
 | 
			
		|||
		goaway($return_url);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	info( t('Contact added') . EOL);
 | 
			
		||||
 | 
			
		||||
	if(strstr($return_url,'contacts'))
 | 
			
		||||
		goaway($a->get_baseurl() . '/contacts/' . $contact_id);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue