Fix subscriptions mode status text when mode is 'disable_paypal_subscriptions'

This commit is contained in:
Pedro Silva 2023-07-11 15:53:47 +01:00
parent aa2889472d
commit d0877d9709
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3

View file

@ -229,7 +229,7 @@ class StatusReportModule implements ModuleInterface {
* @return string
*/
private function subscriptions_mode_text( bool $is_plugin_active, string $subscriptions_mode, array $field_settings ): string {
if ( ! $is_plugin_active || ! $field_settings ) {
if ( ! $is_plugin_active || ! $field_settings || $subscriptions_mode === 'disable_paypal_subscriptions' ) {
return 'Disabled';
}