Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary count() from smarty conditionals #26070

Merged
merged 1 commit into from
Apr 17, 2023

Conversation

colemanw
Copy link
Member

Overview

Followup to #26064 this removes some more unnecessary counts.

Before

Variable is counted and then cast to boolean by the conditional.

After

Variable is cast to boolean by the conditional.

@civibot
Copy link

civibot bot commented Apr 17, 2023

(Standard links)

@civibot civibot bot added the master label Apr 17, 2023
@mattwire mattwire merged commit 50e195f into civicrm:master Apr 17, 2023
@colemanw colemanw deleted the noCount branch November 9, 2023 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants