Update reports.php

This commit is contained in:
Paul Kevan 2024-05-23 15:13:15 +01:00 committed by GitHub
parent 2f8e6de56e
commit ac2db7f8cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -58,7 +58,7 @@ function render_company_report_page() {
$status = sanitize_title( $_GET['status'] );
$pledge_limit = 500;
if ( ! in_array( $status, array( 'draft', '5ftf-deactivated', 'publish' ) ) ) {
$status = 'all';
}
@ -72,7 +72,7 @@ function render_company_report_page() {
) );
// Add visible warning on page if we hit the upper limit of the query.
if ( $pledge_limit === count( $pledges ) ) {
if ( count( $pledges ) === $pledge_limit ) {
echo '<p>WARNING: pledge limit reached, check the code query.</p>';
}
?>