Skip to content

Commit

Permalink
Merge pull request #262 from rtCamp/fix/wrong-message-on-subscription…
Browse files Browse the repository at this point in the history
…-cancellation

GH-122: Wrong message issue when the user has canceled the subscription [Develop]
  • Loading branch information
Pathan-Amaankhan authored Feb 3, 2023
2 parents 3089c59 + 9e9b66e commit af373f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/rt-transcoder-handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ public function usage_widget() {
}

if ( ! empty( $api_key ) ) {
if ( $usage_details && isset( $usage_details[ $api_key ]->status ) && $usage_details[ $api_key ]->status ) {
if ( $usage_details && isset( $usage_details[ $api_key ]->status ) && $usage_details[ $api_key ]->status && 'error' !== $usage_details[ $api_key ]->status ) {

if ( isset( $usage_details[ $api_key ]->plan->name ) ) {
$plan_name = strtolower( $usage_details[ $api_key ]->plan->name );
Expand Down

0 comments on commit af373f5

Please sign in to comment.