Skip to content

Firefly III: a personal finances manager

Fix small bug in database verifier. [skip ci]

James Cole8a49e9824689
diff --git a/app/Console/Commands/VerifyDatabase.php b/app/Console/Commands/VerifyDatabase.php
index 7ed6b8f990..f7b0aab503 100644
--- a/app/Console/Commands/VerifyDatabase.php
+++ b/app/Console/Commands/VerifyDatabase.php
@@ -130,7 +130,7 @@ class VerifyDatabase extends Command
/** @var Budget $entry */
foreach ($set as $entry) {
- $name = $entry->encrypted ? Crypt::decrypt($entry->name) : $entry->name;
+ $name = intval($entry->encrypted) === 1 ? Crypt::decrypt($entry->name) : $entry->name;
$line = sprintf(
'Notice: User #%d (%s) has budget #%d ("%s") which has no budget limits.',
$entry->user_id, $entry->email, $entry->id, $name