diff --git a/craftgate-payment-gateway.php b/craftgate-payment-gateway.php index c448f0a..7b315da 100644 --- a/craftgate-payment-gateway.php +++ b/craftgate-payment-gateway.php @@ -5,7 +5,7 @@ * Description: Accept debit/credit card payments easily and directly on your WordPress site using Craftgate. * Author: Craftgate * Author URI: https://craftgate.io/ - * Version: 1.0.7 + * Version: 1.0.8 * Requires at least: 4.4 * Tested up to: 6.0 * WC requires at least: 3.0.0 @@ -380,7 +380,7 @@ private function retrieve_card_user_key($customer_id, $api_key) ); $result = $wpdb->get_col($query); - if ($result[0]) { + if (isset($result[0])) { return $result[0]; } else { return null; diff --git a/includes/lib/craftgate/src/Adapter/BaseAdapter.php b/includes/lib/craftgate/src/Adapter/BaseAdapter.php index eeaed0a..4f953c2 100644 --- a/includes/lib/craftgate/src/Adapter/BaseAdapter.php +++ b/includes/lib/craftgate/src/Adapter/BaseAdapter.php @@ -55,7 +55,7 @@ private function prepareHeaders($path, $request = null) 'content-type: application/json' ); - if ($GLOBALS["cg-lang-header"]) { + if (isset($GLOBALS["cg-lang-header"])) { $headers[] = 'lang: ' . $GLOBALS["cg-lang-header"]; } diff --git a/readme.txt b/readme.txt index be3066d..9e994fa 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: craftgate, payment gateway, kredi kartı, banka kartı, ödeme, sanal pos, Requires at least: 4.4 Tested up to: 6.0 Requires PHP: 5.6 -Stable tag: 1.0.7 +Stable tag: 1.0.8 License: GPLv3 License URI: https://www.gnu.org/licenses/gpl-3.0.html @@ -63,6 +63,9 @@ Craftgate kullanarak ödeme geçirebilmek için üyeliğinizin olması gerekmekt 6. Sipariş Yönetim Sayfası == Changelog == += 1.0.8 - 2026-12-26 = +* Add additional checks for nullable fields + = 1.0.7 - 2022-11-09 = * updates wordpress and woocommerce versions