From d50b60c281934185035d3f3e9b75bde7acef9823 Mon Sep 17 00:00:00 2001 From: Lucas Bonomo Date: Sat, 1 Feb 2025 19:33:13 -0300 Subject: [PATCH 1/2] Fixing strlen() error --- classes/PodsUI.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/PodsUI.php b/classes/PodsUI.php index c9188920d7..19746eaada 100644 --- a/classes/PodsUI.php +++ b/classes/PodsUI.php @@ -3000,7 +3000,7 @@ public function manage( $reorder = false ) { echo PodsForm::submit_button( $this->header['search'], 'button', false, false, array( 'id' => $this->num_prefix . 'search' . $this->num . '-submit' ) ); - if ( 0 < strlen( $this->search ) ) { + if ( NULL === $this->search ) { $clear_filters = array( $this->num_prefix . 'search' . $this->num => false, ); From c17053de98f5b751ada691496b1e2c232b42be92 Mon Sep 17 00:00:00 2001 From: Scott Kingsley Clark Date: Fri, 7 Feb 2025 17:17:56 -0600 Subject: [PATCH 2/2] Fix logic to match before and cast instead Signed-off-by: Scott Kingsley Clark --- classes/PodsUI.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/PodsUI.php b/classes/PodsUI.php index 19746eaada..4cec000aff 100644 --- a/classes/PodsUI.php +++ b/classes/PodsUI.php @@ -3000,7 +3000,7 @@ public function manage( $reorder = false ) { echo PodsForm::submit_button( $this->header['search'], 'button', false, false, array( 'id' => $this->num_prefix . 'search' . $this->num . '-submit' ) ); - if ( NULL === $this->search ) { + if ( 0 < strlen( (string) $this->search ) ) { $clear_filters = array( $this->num_prefix . 'search' . $this->num => false, );