diff --git a/includes/create-theme/theme-templates.php b/includes/create-theme/theme-templates.php index d40da394..37a3648e 100644 --- a/includes/create-theme/theme-templates.php +++ b/includes/create-theme/theme-templates.php @@ -230,7 +230,7 @@ public static function add_templates_to_local( $export_type, $path = null, $slug ); // Write the media assets if there are any - if ( $template->media ) { + if ( ! empty( $template->media ) ) { CBT_Theme_Media::add_media_to_local( $template->media ); } @@ -258,7 +258,7 @@ public static function add_templates_to_local( $export_type, $path = null, $slug ); // Write the media assets if there are any - if ( $template->media ) { + if ( ! empty( $template->media ) ) { CBT_Theme_Media::add_media_to_local( $template->media ); }