only take action, when there is something to do
This commit is contained in:
parent
46172b641d
commit
06a964c32f
|
@ -32,8 +32,8 @@ class Uexport extends BaseSettingsModule
|
||||||
{
|
{
|
||||||
parent::content();
|
parent::content();
|
||||||
$args = self::getClass(Arguments::class);
|
$args = self::getClass(Arguments::class);
|
||||||
|
if ($args->getArgc() == 3) {
|
||||||
$action = $args->get(2);
|
$action = $args->get(2);
|
||||||
if ($args->getArgc() > 2) {
|
|
||||||
header("Content-type: application/json");
|
header("Content-type: application/json");
|
||||||
header('Content-Disposition: attachment; filename="' . $a->user['nickname'] . '.' . $action . '"');
|
header('Content-Disposition: attachment; filename="' . $a->user['nickname'] . '.' . $action . '"');
|
||||||
switch ($action) {
|
switch ($action) {
|
||||||
|
|
Loading…
Reference in a new issue