Browse Source

[FIX] __icon__ warning

experimental
Paweł Jedwabny 3 years ago
parent
commit
4100c7e9b2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/Base/ActionBar/ActionBar_0.php

+ 1
- 1
modules/Base/ActionBar/ActionBar_0.php View File

@@ -130,7 +130,7 @@ class Base_ActionBar extends Module
$items = array_map(function($item) {
return [
'href' => Base_MenuCommon::create_href($this, $item['link']),
'icon' => (array_key_exists('fa-' . $item['link']['__icon__'], FontAwesome::get())) ? $item['link']['__icon__'] : null,
'icon' => isset($item['link']['__icon__']) ? (array_key_exists('fa-' . $item['link']['__icon__'], FontAwesome::get())) ? $item['link']['__icon__'] : null : null,
'label' => trim(substr(strrchr($item['label'], ':'), 1))?:$item['label'],
'description' => $item['label']
];


Loading…
Cancel
Save