From 64ae184b79a64b303e4984fb1c5d0eef09545cf9 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Thu, 22 Nov 2018 01:46:22 -0600 Subject: [PATCH] structure testing --- app/Library/Finances.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;