Update for PHP7
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 5 Jun 2017 16:02:17 +0000 (12:02 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 5 Jun 2017 16:02:17 +0000 (12:02 -0400)
Have to correct some code for php 7 to work.

front-end/reg_functions.inc
front-end/reg_setup.php
front-end/registrations.inc

index 3bdbdab..9e323b1 100644 (file)
@@ -3181,7 +3181,7 @@ $url, $action, $params, $filters, $a_title, $view = "", $id_field = "", $quick_t
 
 function admin_list_records( $table, $where, $order, $conn_str, $fields,
 $options, $fail_mode, $rows = 20, $start = 0,
-$url, $action, $params, $filters, $a_title, $view = "", $id_field = "", $quick_tip = "", $id_field = "" )
+$url, $action, $params, $filters, $a_title, $view = "", $id_field = "", $quick_tip = "" )
 {
     $r = admin_list_records_r( $table, $where, $order, $conn_str, $fields,
     $options, $fail_mode, $rows, $start,
index 08156f3..55b03cd 100644 (file)
@@ -1,5 +1,4 @@
 <?php
-
 switch ($_ENV['GLM_HOST_ID']) {
 case 'CHUCK' :
     define('BASE_APP_URL', GLM_APP_BASE_URL);
index e85766b..44e7667 100644 (file)
@@ -1238,7 +1238,7 @@ if (isset($_REQUEST['select_event']) && $_REQUEST['select_event'] == 'YES') {
 
     } else {
         $reason[]['text'] = 'ERROR: Unable to process MagicForm at this time.';
-        break;
+        //break;
     }
 
     // If there are any charges
@@ -2954,7 +2954,7 @@ if ($Action == "Step6") {
 
             }
 
-/* - NOT ADDING TO CONTACT TABLE 
+/* - NOT ADDING TO CONTACT TABLE
             // Enter into Contact table
             if ($config->event_registration->save_contacts) {
 
@@ -3112,7 +3112,7 @@ if ($Action == "Step6") {
                          "From: Gaslight Media ".$v['word_Event']." Registration System <info@gaslightmedia.com>\n"
                      );
                  }
+
                  $reason[]['text'] = "The system was unable to store your request but it appears your credit card has already been charged.<br>
                  Please contact ".$v["customer_name"]
                                  .( $cust_phone != '' ? " at ".$v["customer_phone"] : '' )