From ba552498cd11e22e0d74b7ba2654299144504d7f Mon Sep 17 00:00:00 2001 From: Syed Muhammad Usman Date: Mon, 1 Jul 2024 12:32:15 +0500 Subject: [PATCH] PSA-74 - Undefined Array Key --- Postman/PostmanEmailLogs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Postman/PostmanEmailLogs.php b/Postman/PostmanEmailLogs.php index bd3b06cb..f58351c4 100644 --- a/Postman/PostmanEmailLogs.php +++ b/Postman/PostmanEmailLogs.php @@ -317,7 +317,7 @@ public function get_logs_ajax() { $query['end'] = sanitize_text_field( $_GET['length'] ); $query['search'] = sanitize_text_field( $_GET['search']['value'] ); $query['order'] = sanitize_text_field( $_GET['order'][0]['dir'] ); - $query['status'] = sanitize_text_field( $_GET['status'] ); + $query['status'] = isset( $_GET['status'] ) ? sanitize_text_field( $_GET['status'] ) : ''; //MainWP | Get Sites if( isset( $_GET['site_id'] ) ) {