Index: /changelog
===================================================================
--- /changelog	(revision 8380)
+++ /changelog	(revision 8381)
@@ -611,2 +611,5 @@
 - Feature: Modul Vorkasse: Girocode und QR-Code von QR-Rechnung wird nun auf der Bestllabschlusseite und in der BestellbestÃ€tigung (E-Mail) dargestellt
 - Feature: Kundensuche sucht nun in Kommenatar am Kunden und benutzerdefinierten Kundenfeldern
+
+#4.4.7
+- Bugfix: Fehler mit aktuellen WPML Version und der Funktion "String-Ãbersetzung fÃŒllen"
Index: /controller/wpsg_AdminController.class.php
===================================================================
--- /controller/wpsg_AdminController.class.php	(revision 8380)
+++ /controller/wpsg_AdminController.class.php	(revision 8381)
@@ -1274,12 +1274,14 @@
 					$arStringTrans = $this->db->fetchAssocField("SELECT `id` FROM `".WPSG_TBL_WPML_ICL_STRINGS."` WHERE `context` = 'wpsg' AND `name` LIKE 'wpsg_auto_%' ");
 
+					$arTables = $this->db->fetchAssocField("SHOW TABLES");
+					
 					foreach ($arStringTrans as $st_id) {
 
 						// LÃ¶schen
-						$this->db->Query("DELETE FROM `".WPSG_TBL_WPML_ICL_STRING_PAGES."` WHERE `string_id` = '".wpsg_q($st_id)."' ");
-						$this->db->Query("DELETE FROM `".WPSG_TBL_WPML_ICL_STRING_POSITIONS."` WHERE `string_id` = '".wpsg_q($st_id)."' ");
-						$this->db->Query("DELETE FROM `".WPSG_TBL_WPML_ICL_STRING_TRANSLATIONS."` WHERE `string_id` = '".wpsg_q($st_id)."' ");
-						$this->db->Query("DELETE FROM `".WPSG_TBL_WPML_ICL_STRINGS."` WHERE `id` = '".wpsg_q($st_id)."' ");
-
+						if (in_array(WPSG_TBL_WPML_ICL_STRING_PAGES, $arTables)) $this->db->Query("DELETE FROM `".WPSG_TBL_WPML_ICL_STRING_PAGES."` WHERE `string_id` = '".wpsg_q($st_id)."' ");
+						if (in_array(WPSG_TBL_WPML_ICL_STRING_POSITIONS, $arTables))$this->db->Query("DELETE FROM `".WPSG_TBL_WPML_ICL_STRING_POSITIONS."` WHERE `string_id` = '".wpsg_q($st_id)."' ");
+						if (in_array(WPSG_TBL_WPML_ICL_STRING_TRANSLATIONS, $arTables))$this->db->Query("DELETE FROM `".WPSG_TBL_WPML_ICL_STRING_TRANSLATIONS."` WHERE `string_id` = '".wpsg_q($st_id)."' ");
+						if (in_array(WPSG_TBL_WPML_ICL_STRINGS, $arTables))$this->db->Query("DELETE FROM `".WPSG_TBL_WPML_ICL_STRINGS."` WHERE `id` = '".wpsg_q($st_id)."' ");
+						
 					}
 
