Index: branches/5.3.x/core/units/helpers/language_import_helper.php =================================================================== diff -u -N -r15902 -r16395 --- branches/5.3.x/core/units/helpers/language_import_helper.php (.../language_import_helper.php) (revision 15902) +++ branches/5.3.x/core/units/helpers/language_import_helper.php (.../language_import_helper.php) (revision 16395) @@ -1,6 +1,6 @@ Application->getUnitConfig('email-template')->getTableName(); + $table_name = $this->Application->getUnitConfig('email-template')->getTableName(); + // During upgrade from 5.1.x to 5.2.x without this there will be tons of notices. + if ( defined('IS_INSTALL') && IS_INSTALL && !$this->Conn->TableFound($table_name, true) ) { + $this->events_hash = array(); + + return; + } + + $sql = 'SELECT TemplateId, CONCAT(TemplateName,"_",Type) AS EventMix + FROM ' . $table_name; $this->events_hash = $this->Conn->GetCol($sql, 'EventMix'); } @@ -1304,4 +1312,4 @@ return $ids; } - } \ No newline at end of file + }