Index: /lib/filter_functions.inc.php
===================================================================
--- /lib/filter_functions.inc.php	(revision 6522)
+++ /lib/filter_functions.inc.php	(revision 6523)
@@ -86,5 +86,5 @@
                 echo '<div style="height:10px; width:40px; float:left;"></div>';
 
-                if ($wpsg_update_data['licence_model'] == 'pro')
+                if (isset($wpsg_update_data['licence_model']) && $wpsg_update_data['licence_model'] == 'pro')
                 {
 
@@ -92,5 +92,5 @@
 
                 }
-                else if ($wpsg_update_data['licence_model'] == 'enterprise')
+                else if (isset($wpsg_update_data['licence_model']) && $wpsg_update_data['licence_model'] == 'enterprise')
                 {
 
@@ -130,7 +130,7 @@
 				echo '<tr class="plugin-update-trr '.((is_plugin_active(WPSG_FOLDERNAME.'/wpshopgermany.php'))?'active':'').'" id="wpsg-licence"><td colspan="4">';
  
-				echo '<div style="margin-left:40px; margin-top:-10px;">';
+				echo '<div style="margin-left:40px; line-height:20px;">';
 				echo wpsg_translate(
-					__('<span style="color:red; font-weight:bold;">wpShopGermany Vollversion erwerben, Updates erhalten und weitere Funktionen freischalten.</span><br />[ <a href="#" onclick="jQuery(\'#wpsg_lizenz\').show(500); return false;">Lizenzcode eingeben</a> ] [ <a target="_blank" href="#1#">Vollversion kaufen</a> ] [ <a target="_blank" href="#2#">Weitere Infos</a> ]', 'wpsg'),
+					__('<span style="color:red; font-weight:bold;">wpShopGermany Vollversion erwerben, Updates erhalten und weitere Funktionen freischalten.</span><br />[ <a href="#" onclick="jQuery(\'#wpsg_lizenz\').show(100); jQuery(\'#wpsg_licence_file\').focus(); jQuery(\'#wpsg_lizenz_link\').hide(); return false;">Lizenzcode eingeben</a> ] [ <a target="_blank" href="#1#">Vollversion kaufen</a> ] [ <a target="_blank" href="#2#">Weitere Infos</a> ]', 'wpsg'),
 					'http://shop.maennchen1.de/produkte/wpshopgermany-lizenzkey/',
 					'http://wpshopgermany.de/'
@@ -140,8 +140,21 @@
                 echo '<div id="wpsg_lizenz" style="display:none;"><br /><div style="display:flex; align-items:center;">';
                 echo '<strong style="margin-left:40px;">'.__('Lizenzcode: ', 'wpsg').'</strong>';
-                echo '<input type="text" style="margin:0px 10px;" name="wpsg_licence_file" />';
-                echo '<input type="submit" style="margin:0px 10px;" onclick="jQuery(this).closest(\'tr\').prev().find(\'input\').prop(\'checked\', true);" class="button" value="'.__('Code prÃŒfen', 'wpsg').'" name="wpsg_insertlicence_submit" />';
+                echo '<input type="text" style="margin:0px 10px;" id="wpsg_licence_file" name="wpsg_licence_file" />';
+                echo '<input type="submit" style="margin:0px 10px;" id="wpsg_insertlicence_submit" class="button" value="'.__('Code prÃŒfen', 'wpsg').'" name="wpsg_insertlicence_submit" />';
+				echo '<input type="hidden" name="" id="wpsg_insertlicence_hidden" value="1" />';
                 echo '</div></div>';
 
+				echo '<script type="text/javascript"> ';
+
+				echo 'jQuery("input[name=\'wpsg_insertlicence_submit\']").on("click", function() { jQuery("tr[data-slug=\'wpshopgermany\']").find("input[type=\'checkbox\']").prop("checked", true); } ); ';
+				echo 'jQuery("input[name=\'wpsg_licence_file\']").on("keydown", function(event) { if(event.which == 10 || event.which == 13) { jQuery("#wpsg_insertlicence_hidden").attr("name", "wpsg_insertlicence_submit"); jQuery("#wpsg_insertlicence_submit").click(); }  } ); ';
+				echo 'jQuery("#the-list").parent().parent().attr("enctype", "multipart/form-data"); ';
+				
+				echo 'jQuery(document).ready(function() { ';
+				echo 'if (jQuery("#wpshopgermany-update").length > 0) { jQuery("#wpsg-licence").insertAfter(jQuery("#wpshopgermany-update")); } '; 
+				echo '} ); ';
+				
+				echo '</script>';
+				
 				echo '</td></tr>';
 				
@@ -374,5 +387,5 @@
         if ($wpsg_lastupdate == false || $wpsg_lastupdate < time() - 60 * $min || !wpsg_isSizedArray($wpsg_update_data))
         {
-
+			
             try
             {
