diff --git a/lib/export/export_xml_func.inc.php b/lib/export/export_xml_func.inc.php
index 2021feb05d5c47d2e726ab5c5f3fa5563d87298f..a3be8c0367aba04933f0eeb4ef3422a21a7cf4d0 100644
--- a/lib/export/export_xml_func.inc.php
+++ b/lib/export/export_xml_func.inc.php
@@ -72,9 +72,9 @@ global $SOFTWARE_VERSION, $ex_type, $ex_sem, $range_name, $range_id;
 * @param        string  value for optional attribute "key"
 * @return       string  xml open tag
 */
-function xml_open_tag($tag_name, $tag_key = null)
+function xml_open_tag($tag_name, $key = null)
 {
-    $xml_tag_string = rtrim(' ' . xml_attributes_to_string(compact('tag_key')));
+    $xml_tag_string = rtrim(' ' . xml_attributes_to_string(compact('key')));
     $xml_tag_string = "<{$tag_name}{$xml_tag_string}>\n";
     return $xml_tag_string;
 }