summaryrefslogtreecommitdiffstats
path: root/migrate.module
diff options
context:
space:
mode:
authorMike Ryan2009-09-13 20:59:51 +0000
committerMike Ryan2009-09-13 20:59:51 +0000
commit253d92432622996d7ca6f08f6bd7d3c7de305242 (patch)
tree8c4fc5ebb531b1db5223c0ff829b7c141cb5002d /migrate.module
parenta8dfd288d01646b41b0931e0ff35fe432524f529 (diff)
#567686 by mikeryan: Fixed sorting, tweaked layout of content set listing
Diffstat (limited to 'migrate.module')
-rwxr-xr-xmigrate.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/migrate.module b/migrate.module
index 5617c5d..09535bf 100755
--- a/migrate.module
+++ b/migrate.module
@@ -143,7 +143,7 @@ function migrate_save_content_set(&$content_set, $options = array()) {
db_set_active('default');
$sourceschema = $inspect[$tablename];
// If the PK of the content set is defined, make sure we have a mapping table
- if ($content_set->sourcekey) {
+ if (isset($content_set->sourcekey) && $content_set->sourcekey) {
$sourcefield = $sourceschema['fields'][$content_set->sourcekey];
// The field name might be <table>_<column>...
if (!$sourcefield) {