diff --git a/core/modules/taxonomy/taxonomy.module b/core/modules/taxonomy/taxonomy.module
index eac6bed..56299ca 100644
--- a/core/modules/taxonomy/taxonomy.module
+++ b/core/modules/taxonomy/taxonomy.module
@@ -705,20 +705,10 @@ function taxonomy_term_save($term) {
     $query = db_insert('taxonomy_term_hierarchy')
       ->fields(array('tid', 'parent'));
     foreach ($term->parent as $parent) {
-      if (is_array($parent)) {
-        foreach ($parent as $tid) {
-          $query->values(array(
-            'tid' => $term->tid,
-            'parent' => $tid
-          ));
-        }
-      }
-      else {
-        $query->values(array(
-          'tid' => $term->tid,
-          'parent' => $parent
-        ));
-      }
+      $query->values(array(
+        'tid' => $term->tid,
+        'parent' => $parent
+      ));
     }
     $query->execute();
   }
