Skip to content

Commit

Permalink
Cast returned transient to array
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyvankooten committed Oct 9, 2015
1 parent 5e26759 commit 235e1f6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions includes/class-mailchimp.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,7 @@ public function get_lists( $force_refresh = false, $force_fallback = false ) {
return $lists;
} else {
// api request failed, get fallback data (with longer lifetime)
$cached_lists = get_transient( $this->transient_name . '_fallback' );

if ( ! is_array( $cached_lists ) ) {
return false;
}
$cached_lists = (array) get_transient( $this->transient_name . '_fallback' );
}

}
Expand Down

0 comments on commit 235e1f6

Please sign in to comment.