Index: branches/5.0.x/core/kernel/utility/temp_handler.php =================================================================== diff -u -N -r12868 -r13202 --- branches/5.0.x/core/kernel/utility/temp_handler.php (.../temp_handler.php) (revision 12868) +++ branches/5.0.x/core/kernel/utility/temp_handler.php (.../temp_handler.php) (revision 13202) @@ -1,6 +1,6 @@ UpdateChangeLogForeignKeys($master, $live_id, $temp_id); foreach ($master['SubTables'] as $sub_table) { $foreign_key_field = is_array($sub_table['ForeignKey']) ? getArrayValue($sub_table, 'ForeignKey', $master['Prefix']) : $sub_table['ForeignKey']; - if (!$foreign_key_field) return; + if (!$foreign_key_field) { + continue; + } list ($live_foreign_key, $temp_foreign_key) = $this->GetForeignKeys($master, $sub_table, $live_id, $temp_id);