We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33c46a8 commit 6148667Copy full SHA for 6148667
1 file changed
php/class-connect.php
@@ -447,7 +447,7 @@ public function history( $days = 1 ) {
447
$plan = ! empty( $this->usage['plan'] ) ? $this->usage['plan'] : $this->credentials['cloud_name'];
448
for ( $i = 1; $i <= $days; $i ++ ) {
449
$date = date_i18n( 'd-m-Y', strtotime( '- ' . $i . ' days' ) );
450
- if ( ! isset( $history[ $plan ][ $date ] ) ) {
+ if ( ! isset( $history[ $plan ][ $date ] ) || is_wp_error( $history[ $plan ][ $date ] ) ) {
451
$history[ $plan ][ $date ] = $this->api->usage( $date );
452
uksort(
453
$history[ $plan ],
0 commit comments