]> git.mxchange.org Git - friendica.git/commitdiff
only take action, when there is something to do
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Fri, 11 Oct 2019 09:42:07 +0000 (11:42 +0200)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Fri, 11 Oct 2019 09:42:07 +0000 (11:42 +0200)
src/Module/Settings/Uexport.php

index c9cab9b21bf2e32fb407edb0605460644279cd38..8e0ee6758abb76ce8f84b022776db829dafe6327 100644 (file)
@@ -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) {