Skip to content

Commit

Permalink
Merge pull request #376 from anktd/fix-headers-already-sent-error
Browse files Browse the repository at this point in the history
Fix headers already sent error in version 3.7.4
  • Loading branch information
shivaenigma committed Jul 15, 2024
2 parents 4e9fa04 + 3f705df commit 5ff6803
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions php/Blockonomics.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ public function calculate_total_paid_fiat($transactions) {
return $rounded_total_paid_fiats;

}



private $api_key;

public function __construct()
{
$this->api_key = $this->get_api_key();
Expand Down Expand Up @@ -134,7 +135,7 @@ public function get_callbacks($crypto)
$response = $this->get($url, $this->api_key);
return $response;
}

public function check_get_callbacks_response_code($response){
$error_str = '';
//TODO: Check This: WE should actually check code for timeout
Expand Down
3 changes: 2 additions & 1 deletion php/form_fields.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

<?php

defined( 'ABSPATH' ) || exit;

class FormFields {
public static function init_form_fields($callback_url = '') {
$blockonomics = new Blockonomics;
Expand Down

0 comments on commit 5ff6803

Please sign in to comment.