blacksmoke26 / yii2cdn

A Yii Framework 2 component for using assets in different environments (Local/CDNs)
Apache License 2.0
14 stars 2 forks source link

Undefined index: @sectionsAttrs #6

Closed dbd5 closed 6 years ago

dbd5 commented 7 years ago

Hi @blacksmoke26 ,

It seems there's a small bug in ConfigParser (line 377)

if ( !count($compAttrs['@sectionsAttrs']) ) { return []; }

I've been able to proceed with the following work around;

if (!isset($compAttrs['@sectionsAttrs']) || !count($compAttrs['@sectionsAttrs']) ) { return []; }

blacksmoke26 commented 7 years ago

Will merge. Thanks!

blacksmoke26 commented 6 years ago

Fixed