Skip to content

Fix results with 0 clicks on search#3589

Merged
ozh merged 1 commit intoYOURLS:masterfrom
JensSpanier:no-result-on-search
Jul 15, 2023
Merged

Fix results with 0 clicks on search#3589
ozh merged 1 commit intoYOURLS:masterfrom
JensSpanier:no-result-on-search

Conversation

@JensSpanier
Copy link
Copy Markdown
Contributor

There is currently a bug where the search result doesn't return entries whith 0 clicks.

When using the search on the admin page, $_GET['click_limit'] is alwas set. It's just empty. So I check for !empty instead of isset.

It's also a possible fix to remove = from the check intval($_GET['click_limit']) >= 0.

Let me know what you think about this.

@ozh ozh merged commit 65655a5 into YOURLS:master Jul 15, 2023
@ozh
Copy link
Copy Markdown
Member

ozh commented Jul 15, 2023

Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants