Skip to content

Commit 2110c31

Browse files
minor bug fix
1 parent 81b3de9 commit 2110c31

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

admin/class-paystack-forms-admin.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -839,8 +839,10 @@ function Kkd_pff_export_excel()
839839
$post_id = $_POST['form_id'];
840840
$obj = get_post($post_id);
841841
$csv_output = "";
842-
843-
842+
$currency = get_post_meta($post_id, '_currency', true);
843+
if ($currency == "") {
844+
$currency = 'NGN';
845+
}
844846
$table = $wpdb->prefix.KKD_PFF_PAYSTACK_TABLE;
845847
$data = array();
846848
$alldbdata = $wpdb->get_results("SELECT * FROM $table WHERE (post_id = '".$post_id."' AND paid = '1') ORDER BY `id` ASC");

0 commit comments

Comments
 (0)