Add empty errors array

This commit is contained in:
snipe 2017-08-23 00:31:37 -07:00
parent f119c69698
commit 58b3f0519d

View file

@ -47,6 +47,7 @@ class RecryptFromMcrypt extends Command
// Check and see if they have a legacy app key listed in their .env // Check and see if they have a legacy app key listed in their .env
// If not, we can try to use the current APP_KEY if looks like it's old // If not, we can try to use the current APP_KEY if looks like it's old
$legacy_key = env('LEGACY_APP_KEY'); $legacy_key = env('LEGACY_APP_KEY');
$errors = array();
if (!$legacy_key) { if (!$legacy_key) {
$this->error('ERROR: You do not have a LEGACY_APP_KEY set in your .env file. Please locate your old APP_KEY and ADD a line to your .env file like: LEGACY_APP_KEY=YOUR_OLD_APP_KEY'); $this->error('ERROR: You do not have a LEGACY_APP_KEY set in your .env file. Please locate your old APP_KEY and ADD a line to your .env file like: LEGACY_APP_KEY=YOUR_OLD_APP_KEY');