]> git.mxchange.org Git - friendica.git/commitdiff
Fix Storage move command
authornupplaPhil <admin@philipp.info>
Fri, 17 Jan 2020 23:08:48 +0000 (00:08 +0100)
committernupplaPhil <admin@philipp.info>
Fri, 17 Jan 2020 23:08:48 +0000 (00:08 +0100)
src/Console/Storage.php

index f4b4de562e8e77ca1edafabd4c0cce7eb236fb41..fcf55a9444327c48a610db242752ddbf9e2b11b2 100644 (file)
@@ -130,7 +130,6 @@ HELP;
 
        protected function doMove()
        {
-               $tables = null;
                if (count($this->args) < 1 || count($this->args) > 2) {
                        throw new CommandArgsException('Invalid arguments');
                }
@@ -141,6 +140,8 @@ HELP;
                                throw new CommandArgsException('Invalid table');
                        }
                        $tables = [$table];
+               } else {
+                       $tables = StorageManager::TABLES;
                }
 
                $current = $this->storageManager->getBackend();