Index: units/helpers/language_import_helper.php =================================================================== --- units/helpers/language_import_helper.php (revision 13756) +++ units/helpers/language_import_helper.php (working copy) @@ -895,7 +895,10 @@ $this->Application->Debugger->profileFinish('L[' . $language_id . ']E', 'Language: ' . $language_id . '; Events Import'); } - $this->Conn->doInsert($fields_hash, $this->_tables['emailevents'], 'REPLACE'); + if (isset($fields_hash)) { + // at least one email event in language pack was found in database + $this->Conn->doInsert($fields_hash, $this->_tables['emailevents'], 'REPLACE'); + } } /**