phaidon / Piwik

Piwik module for Zikula
8 stars 2 forks source link

Wrong check in user api #1

Closed Guite closed 13 years ago

Guite commented 13 years ago

Line 26 of Piwik_Api_User class should be:

    $adminpage = (FormUtil::getPassedValue('type', isset($args['type']) ? $args['type'] : null, 'GET') == 'admin');

Note the comparison added to the end, making it a condition.

phaidon commented 13 years ago

Thank you for the hint.

https://github.com/phaidon/Piwik/commit/05cbda73856a951909deec062d0aef6a085194b8