Skip to content

Commit

Permalink
fix: adds conditional check for api-key's status
Browse files Browse the repository at this point in the history
  • Loading branch information
Pathan-Amaankhan committed Feb 2, 2023
1 parent 7c7c5d0 commit 9e9b66e
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 9e9b66e

Please sign in to comment.