preserve loggedin flag on edit
This commit is contained in:
		
							parent
							
								
									40e3b8625b
								
							
						
					
					
						commit
						3eda7bfd6c
					
				@ -42,6 +42,7 @@ class admin_entry_commedit extends AdminPanelActionValidated {
 | 
			
		||||
			if ($this->nosuchcomment) return PANEL_REDIRECT_DEFAULT;
 | 
			
		||||
			
 | 
			
		||||
			$comment = comment_parse($_REQUEST['entry'],$_REQUEST['comment']);
 | 
			
		||||
			if (isset($comment['loggedin'])) $content['loggedin'] = $comment['loggedin'];
 | 
			
		||||
			$content['ip-address']	= $comment['ip-address'];
 | 
			
		||||
			$content['date'] = $comment['date'];
 | 
			
		||||
			$success = comment_save($_REQUEST['entry'], $content);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user