From 6bf73321af7f3a4083a58515c0db5911213add2e Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Thu, 6 Dec 2018 18:11:29 -0600 Subject: [PATCH] helper for console commands --- app/Library/FinanceHelper.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Library/FinanceHelper.php b/app/Library/FinanceHelper.php index b7a9c8f71..7108777ac 100644 --- a/app/Library/FinanceHelper.php +++ b/app/Library/FinanceHelper.php @@ -182,7 +182,8 @@ class FinanceHelper { return $character->corporation_id; } else { //Return the corporation_id if it was found in the database as it is what the calling function is looking for - return $found->corporation_id; + + return $found[0]->corporation_id; } }