structure testing

This commit is contained in:
2018-11-22 01:46:22 -06:00
parent aef8fb7cdc
commit 64ae184b79

View File

@@ -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;