// Previewing free tagging terms; we don't link them because the
// term-page might not exist yet.
- else {
+ else if (!empty($term)) {
+ $term = (array)$term;
foreach ($term as $free_typed) {
$typed_terms = drupal_explode_tags($free_typed);
foreach ($typed_terms as $typed_term) {
// Previewing free tagging