From c54ed05da21d137e3e098267c418bd4915656760 Mon Sep 17 00:00:00 2001 From: hissy Date: Fri, 16 Jan 2015 21:28:08 +0900 Subject: [PATCH] Avoid notice error --- rs-csv-importer.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rs-csv-importer.php b/rs-csv-importer.php index 07d267c..ef91e62 100644 --- a/rs-csv-importer.php +++ b/rs-csv-importer.php @@ -121,7 +121,9 @@ public function save_post($post,$meta,$terms,$thumbnail,$is_update) { } // Set post tags - $h->setPostTags($post_tags); + if ($post_tags) { + $h->setPostTags($post_tags); + } // Set meta data $h->setMeta($meta);