diff --git a/sites/all/modules/unl/unl_migration.php b/sites/all/modules/unl/unl_migration.php index 0f4737eacdd6a287990f4761be8caf4f755215c7..5d38e2db4b233b69b27550d5500d938cf37fa337 100644 --- a/sites/all/modules/unl/unl_migration.php +++ b/sites/all/modules/unl/unl_migration.php @@ -784,13 +784,15 @@ class Unl_Migration_Tool if (module_exists('pathauto')) { $node->path['pathauto'] = FALSE; } + + $filter_format_keys = array_keys(filter_formats()); $node->body = array( - 'und' => array( - array( - 'value' => $content, - 'format' => array_shift(array_keys(filter_formats())) - ) - ) + 'und' => array( + array( + 'value' => $content, + 'format' => array_shift($filter_format_keys), + ), + ), ); node_submit($node);