From 06a964c32f43f306a3322ebdc6359a33dfe344c2 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Fri, 11 Oct 2019 11:42:07 +0200 Subject: [PATCH] only take action, when there is something to do --- src/Module/Settings/Uexport.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Module/Settings/Uexport.php b/src/Module/Settings/Uexport.php index c9cab9b21b..8e0ee6758a 100644 --- a/src/Module/Settings/Uexport.php +++ b/src/Module/Settings/Uexport.php @@ -32,8 +32,8 @@ class Uexport extends BaseSettingsModule { parent::content(); $args = self::getClass(Arguments::class); - $action = $args->get(2); - if ($args->getArgc() > 2) { + if ($args->getArgc() == 3) { + $action = $args->get(2); header("Content-type: application/json"); header('Content-Disposition: attachment; filename="' . $a->user['nickname'] . '.' . $action . '"'); switch ($action) {