@@ -1,12 +1,12 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * This serves as both the Module for the MVC part of the audit and the configuration/entry point for the actual |
|
| 4 | - * audit process. |
|
| 5 | - * |
|
| 6 | - * @author Steve Guns <[email protected]> |
|
| 7 | - * @package com.bedezign.yii2.audit |
|
| 8 | - * @copyright 2014-2015 B&E DeZign |
|
| 9 | - */ |
|
| 3 | + * This serves as both the Module for the MVC part of the audit and the configuration/entry point for the actual |
|
| 4 | + * audit process. |
|
| 5 | + * |
|
| 6 | + * @author Steve Guns <[email protected]> |
|
| 7 | + * @package com.bedezign.yii2.audit |
|
| 8 | + * @copyright 2014-2015 B&E DeZign |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | namespace bedezign\yii2\audit; |
| 12 | 12 | |
@@ -373,12 +373,12 @@ discard block |
||
| 373 | 373 | |
| 374 | 374 | // We now need one more iteration to add core classes to the panels added via the merge, if needed |
| 375 | 375 | array_walk($this->panels, function(&$value, $key) { |
| 376 | - if (!isset($value['class'])) { |
|
| 377 | - if (isset($this->_corePanels[$key])) |
|
| 378 | - $value = ArrayHelper::merge($value, $this->_corePanels[$key]); |
|
| 379 | - else |
|
| 380 | - throw new InvalidConfigException("Invalid configuration for '$key'. No 'class' specified."); |
|
| 381 | - } |
|
| 376 | + if (!isset($value['class'])) { |
|
| 377 | + if (isset($this->_corePanels[$key])) |
|
| 378 | + $value = ArrayHelper::merge($value, $this->_corePanels[$key]); |
|
| 379 | + else |
|
| 380 | + throw new InvalidConfigException("Invalid configuration for '$key'. No 'class' specified."); |
|
| 381 | + } |
|
| 382 | 382 | }); |
| 383 | 383 | } |
| 384 | 384 | |