Skip to content

Commit

Permalink
Fix logic to match before and cast instead
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Kingsley Clark <scott@skc.dev>
  • Loading branch information
sc0ttkclark authored Feb 7, 2025
1 parent d50b60c commit c17053d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/PodsUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
Expand Down

0 comments on commit c17053d

Please sign in to comment.