Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

adding in the fixes to the plugin

  • Loading branch information...
commit 71927e38f4ffc8dfab7c58a15efebba48e56dd18 1 parent b09e3fb
David Heward authored March 13, 2012

Showing 1 changed file with 7 additions and 4 deletions. Show diff stats Hide diff stats

  1. 11  extreme-contact.php
11  extreme-contact.php
@@ -439,7 +439,7 @@ function xtrcon_store_submission(){
439 439
 
440 440
 if(!function_exists('xtrcon_shortcode')):
441 441
 	function xtrcon_shortcode($args){
442  
-	
  442
+		
443 443
 		$supporting_text = $args['supporting_text'];
444 444
 	
445 445
 		$xtrcon_sent_from = get_option('xtrcon_sent_from');
@@ -469,7 +469,7 @@ function xtrcon_shortcode($args){
469 469
 		$success = false;
470 470
 		
471 471
 		$supporting_message = '<p>'.$supporting_text.'</p>';
472  
-						
  472
+								
473 473
 		if(isset($_POST['xtrcon_submit'])):
474 474
 					
475 475
 			$xtrcon_sub_name = xtrcon_checkdata($_POST['xtrcon_name'],4);
@@ -643,11 +643,14 @@ function xtrcon_shortcode($args){
643 643
 			$retmessage .= '</div>';
644 644
 		
645 645
 		elseif($message && $errors<=0):
646  
-		
  646
+
647 647
 			$retmessage = $message;
648 648
 		
649 649
 		else:
650  
-			$retmessage = '';
  650
+			if($supporting_message)
  651
+				$retmessage = $supporting_message;
  652
+			else
  653
+				$retmessage = '';
651 654
 		endif;
652 655
 
653 656
 		$output = $retmessage;

0 notes on commit 71927e3

Please sign in to comment.
Something went wrong with that request. Please try again.