only try to save a definition, when there is a definition_id available

This commit is contained in:
Klaus Leithoff 2013-02-06 15:17:33 +00:00
parent 4713387be1
commit 898b020fbf

View File

@ -233,7 +233,7 @@ class importexport_definitions_bo {
$definition_id = $definition->get_identifier() ? $definition->get_identifier() : NULL; $definition_id = $definition->get_identifier() ? $definition->get_identifier() : NULL;
$definition->set_record( $definition_data ); $definition->set_record( $definition_data );
$definition->save( $definition_id ); if (isset($definition_id)) $definition->save( $definition_id );
} }
} }
return $definitions; return $definitions;