Fix small bug in database verifier. [skip ci]

This commit is contained in:
James Cole 2016-12-30 08:51:26 +01:00
parent 8a49e98246
commit 7a57670925
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -130,10 +130,9 @@ class VerifyDatabase extends Command
/** @var Budget $entry */ /** @var Budget $entry */
foreach ($set as $entry) { foreach ($set as $entry) {
$name = intval($entry->encrypted) === 1 ? Crypt::decrypt($entry->name) : $entry->name;
$line = sprintf( $line = sprintf(
'Notice: User #%d (%s) has budget #%d ("%s") which has no budget limits.', 'Notice: User #%d (%s) has budget #%d ("%s") which has no budget limits.',
$entry->user_id, $entry->email, $entry->id, $name $entry->user_id, $entry->email, $entry->id, $entry->name
); );
$this->line($line); $this->line($line);
} }