Undefined index: piraeusbank_gateway-card-doseis
-
Γεια σα?.
Πα?ρνω το ακ?λουθο PHP notice απ? το site που ?χω εγκαταστ?σει το plugin σα?:
Notice: Undefined index: piraeusbank_gateway-card-doseis
WordPress version: 5.4.1
WooCommerce version: 4.0.1
Piraeus Bank WooCommerce Payment Gateway version: 1.5.5Πλ?ρε? stack trace στο συνημμ?νο link απ? Sentry.
Δεν βρ?κα κ?ποιο git repository για να ανο?ξω pull request, οπ?τε παραθ?τω το diff με τη μικρ? δι?ρθωση που προτε?νω:
diff --git a/wooshop-piraeus.php b/wooshop-piraeus-b.php index f024ee5..b10376d 100644 --- a/wooshop-piraeus.php +++ b/wooshop-piraeus-b.php @@ -521,7 +521,7 @@ function woocommerce_piraeusbank_init() { */ $order = new WC_Order($order_id); - $doseis = intval($_POST[esc_attr($this->id) . '-card-doseis']); + $doseis = intval($_POST[esc_attr($this->id) . '-card-doseis'] ?? 0); if ($doseis > 0) { $this->generic_add_meta($order_id, '_doseis', $doseis); }
Ευχαριστ?! ??
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Undefined index: piraeusbank_gateway-card-doseis’ is closed to new replies.