phaidon/Piwik

Wrong check in user api

Closed this issue · 1 comments

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.

Thank you for the hint.

05cbda7