Index: branches/5.1.x/core/units/helpers/language_import_helper.php =================================================================== diff -u -N -r13583 -r13781 --- branches/5.1.x/core/units/helpers/language_import_helper.php (.../language_import_helper.php) (revision 13583) +++ branches/5.1.x/core/units/helpers/language_import_helper.php (.../language_import_helper.php) (revision 13781) @@ -1,6 +1,6 @@ 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'); + } } /**