[9.2.14] theme - footer - controle erreur import theme incorrect

This commit is contained in:
fredtempez 2019-12-06 18:04:38 +01:00
parent 0f99ffbbae
commit 83e5b100f1

View File

@ -133,10 +133,11 @@
<h4>Configuration</h4> <h4>Configuration</h4>
<div class="row"> <div class="row">
<div class="col4"> <div class="col4">
<?php $footerBlockPosition = $module::$footerblocks [$this->getData(['theme', 'footer', 'template'])]; ?>
<?php $footerBlockPosition = is_null($this->getData(['theme', 'footer', 'template'])) ? $module::$footerblocks[3] : $module::$footerblocks [$this->getData(['theme', 'footer', 'template'])] ;?>
<?php echo template::select('themeFooterTemplate', $module::$footerTemplate, [ <?php echo template::select('themeFooterTemplate', $module::$footerTemplate, [
'label' => 'Disposition', 'label' => 'Disposition',
'selected' => $this->getData(['theme', 'footer', 'template']) 'selected' => is_null($this->getData(['theme', 'footer', 'template'])) ? 4 : $this->getData(['theme', 'footer', 'template'])
]); ?> ]); ?>
</div> </div>
<div class="col4"> <div class="col4">