More parameter handling improved
This commit is contained in:
@@ -36,7 +36,7 @@ class Show extends BaseApi
|
||||
{
|
||||
BaseApi::checkAllowedScope(BaseApi::SCOPE_READ);
|
||||
$uid = BaseApi::getCurrentUserID();
|
||||
$type = $this->parameters['extension'] ?? '';
|
||||
$type = $this->getRequestValue($this->parameters, 'extension', 'json');
|
||||
|
||||
// params
|
||||
$gid = $this->getRequestValue($request, 'gid', 0);
|
||||
|
||||
Reference in New Issue
Block a user