diff --git a/app/Library/Finances.php b/app/Library/Finances.php index 2a2f6288e..a515ef3af 100644 --- a/app/Library/Finances.php +++ b/app/Library/Finances.php @@ -108,9 +108,8 @@ class Finances { private function PutWalletJournal($journal, $corpId, $division) { $check = DB::table('CorpJournals')->where('id', $journal['id'])->get(); - dd($check->count()); //if we don't find the journal entry, add the journal entry to the database - if($check == null) { + if($check->count() === 0) { $entry = new CorpJournal; $entry->id = $journal['id']; $entry->corporation_id = $corpId;