From ff218201a1b634a4dd4193b4b07f5e1f46fa0015 Mon Sep 17 00:00:00 2001 From: Douglas Kesi-Ayeba Kendyson Date: Mon, 17 Oct 2016 09:13:20 +0100 Subject: [PATCH] Minor fixes --- public/class-paystack-forms-public.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/class-paystack-forms-public.php b/public/class-paystack-forms-public.php index 58c31d6..06078f7 100755 --- a/public/class-paystack-forms-public.php +++ b/public/class-paystack-forms-public.php @@ -1068,7 +1068,7 @@ function kkd_pff_paystack_submit_action() { } function kkd_pff_paystack_meta_as_custom_fields($metadata){ - $custom_fields = []; + $custom_fields = array(); foreach ($metadata as $key => $value) { if ($key == 'pf-fname') { $custom_fields[] = array( @@ -1249,7 +1249,7 @@ function kkd_pff_paystack_retry_action() { $code = $_POST['code']; $newcode = kkd_pff_paystack_generate_code(); $newcode = $newcode.'_2'; - $insert = []; + $insert = array(); $table = $wpdb->prefix.KKD_PFF_PAYSTACK_TABLE; $record = $wpdb->get_results("SELECT * FROM $table WHERE (txn_code = '".$code."')"); if (array_key_exists("0", $record)) {