Skip to content

Commit

Permalink
Added check if iblock is internationalized on getLangMenu() method (i…
Browse files Browse the repository at this point in the history
…f it exists in i18nTable)
  • Loading branch information
Denis Pugachev committed Dec 12, 2016
1 parent 3c822f8 commit d02844d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/iblock/ui/interfacehelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,10 @@ public static function getLangMenu()
$currentLang = static::getCurrentLang($model);
$settings = static::getIblockSettings($request->get('IBLOCK_ID'));

if ($settings === null) {
return null;
}

$itemVersions = static::getItemVersions($model, $relatedId, $settings);

$rsLangs = LanguageTable::query()
Expand Down

0 comments on commit d02844d

Please sign in to comment.