Commit e30831f42a08a731b24af91a353939f11934b09f
1 parent
70f45199
big commti
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
frontend/views/layouts/main-menu.php
... | ... | @@ -41,7 +41,7 @@ $models = Category::find()->all(); |
41 | 41 | <table cellpadding="0" cellspacing="0" border="0"> |
42 | 42 | <tr> |
43 | 43 | <td> |
44 | - <?= Html::img(ArtboxImageHelper::getImageSrc(Yii::getAlias('@imagesUrl/tax_option/'. $group['image']), 'option_menu'))?> | |
44 | + <?= Html::img(ArtboxImageHelper::getImageSrc(Yii::getAlias(!empty($group['image']) ? '@imagesUrl/tax_option/'. $group['image'] : '/storage/no_photo.png'), 'option_menu'))?> | |
45 | 45 | </td> |
46 | 46 | </tr> |
47 | 47 | </table> | ... | ... |