From 8a49e9824689e079a74da2f3f22183a1a8c88ad9 Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 30 Dec 2016 08:49:27 +0100 Subject: [PATCH] Fix small bug in database verifier. [skip ci] --- app/Console/Commands/VerifyDatabase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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