← All changes
|
includes/admin/settings/class-charitable-export-settings.php
+2
-2
1.7.0.7
→
1.8.13
View file →
| @@ -3,9 +3,9 @@ | ||
| 3 | 3 | * Charitable Export Settings UI. |
| 4 | 4 | * |
| 5 | 5 | * @package Charitable/Classes/Charitable_Export_Settings |
| 6 | 6 | * @author David Bisset |
| 7 | - * @copyright Copyright (c) 2022, WP Charitable LLC | |
| 7 | + * @copyright Copyright (c) 2023, WP Charitable LLC | |
| 8 | 8 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
| 9 | 9 | * @since 1.7.0.7 |
| 10 | 10 | * @version 1.6.0 |
| 11 | 11 | */ |
| @@ -100,9 +100,9 @@ | ||
| 100 | 100 | $campaigns[ $post->ID ] = $post->post_title; |
| 101 | 101 | if ( $include_donations ) { |
| 102 | 102 | $donations = charitable_get_table( 'campaign_donations' )->get_donations_on_campaign( $post->ID ); |
| 103 | 103 | $donation_count = count( $donations ); |
| 104 | - $plural = ( ( $donation_count ) > 1 ) ? 's' : ''; | |
| 104 | + $plural = ( ( $donation_count > 1 ) || 0 === $donation_count ) ? 's' : ''; | |
| 105 | 105 | $campaigns[ $post->ID ] = $post->post_title . ' (' . count( $donations ) . ' donation' . $plural . ') '; |
| 106 | 106 | } |
| 107 | 107 | endforeach; |
| 108 | 108 | |