This should fix a bug in the verification routine.

Signed-off-by: James Cole <thegrumpydictator@gmail.com>
This commit is contained in:
James Cole
2016-08-24 19:36:09 +02:00
parent a2e14f8b8d
commit d4f8c41d80

View File

@@ -100,12 +100,7 @@ class VerifyDatabase extends Command
/** @var stdClass $entry */
foreach ($set as $entry) {
$isEncrypted = intval($entry->encrypted) === 1;
$name = $entry->name;
if ($isEncrypted) {
$name = Crypt::decrypt($entry->name);
}
$name = $entry->name;
$line = 'User #%d (%s) has account #%d ("%s") which has no transactions.';
$line = sprintf($line, $entry->user_id, $entry->email, $entry->id, $name);
$this->line($line);