|
@@ -100,7 +100,7 @@ function button_2_categorized_blog() {
|
|
|
) );
|
|
|
|
|
|
// Count the number of categories that are attached to the posts.
|
|
|
- $all_the_cool_cats = count( $all_the_cool_cats );
|
|
|
+ $all_the_cool_cats = is_countable( $all_the_cool_cats ) ? count( $all_the_cool_cats ) : 0;
|
|
|
|
|
|
set_transient( 'button_2_categories', $all_the_cool_cats );
|
|
|
}
|