Index: branches/unlabeled/unlabeled-1.3.2/kernel/units/general/helpers/multilanguage.php =================================================================== diff -u -r4030 -r4278 --- branches/unlabeled/unlabeled-1.3.2/kernel/units/general/helpers/multilanguage.php (.../multilanguage.php) (revision 4030) +++ branches/unlabeled/unlabeled-1.3.2/kernel/units/general/helpers/multilanguage.php (.../multilanguage.php) (revision 4278) @@ -43,6 +43,10 @@ { $table_name = $this->Application->getUnitOption('lang', 'TableName'); $languages_count = $this->Conn->GetOne('SELECT COUNT(*) FROM '.$table_name); + if (!$languages_count) { + // during installation we have not languages, but we need to created custom field columns + $languages_count = 1; + } return $languages_count + 5 - ( $languages_count % 5 ? ($languages_count % 5) : 5 ); }