GavickPro / GK-News-Show-Pro

Advanced widget for the posts display.
GNU General Public License v2.0
9 stars 9 forks source link

Problem with default CSS option #17

Closed piotrkunicki closed 10 years ago

piotrkunicki commented 10 years ago

Option doesn't work, problem with this condition in add_css function:

$use_css = isset($instance['use_css']) ? $instance['use_css'] : $this->config['use_css'];
dziudek commented 10 years ago

Please check if the problem still exist after the latest updates.

piotrkunicki commented 10 years ago

Still doesn't work. Checkbox "Use default CSS " enabled or disabled - css loaded from gk-nsp.css file in both cases.

dziudek commented 10 years ago

Problem fixed in this commit: https://github.com/GavickPro/GK-News-Show-Pro/commit/22f71dc8df8768ffd43cc3bc94206fb5a461ff51

The reason was fact that $instances variable contains always "1" at the end - I've added check is_array and now as I see the checkbox works fine.

Please confirm and then close this issue :)