From ac3c43e17d5c4acf319ea7fae5e7e0b7b25683df Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 23 Sep 2023 00:35:43 +0000 Subject: [PATCH] fixes --- Api/Payment/Stripe.php | 3 --- Module/ModuleManager.php | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Api/Payment/Stripe.php b/Api/Payment/Stripe.php index 25450a093..da0b3527f 100755 --- a/Api/Payment/Stripe.php +++ b/Api/Payment/Stripe.php @@ -24,8 +24,6 @@ namespace phpOMS\Api\Payment; */ final class Stripe extends PaymentAbstract { - private \Stripe\StripeClient $con; - /** * Constructor. * @@ -35,7 +33,6 @@ final class Stripe extends PaymentAbstract */ public function __construct(string $apiKey) { - $this->con = new \Stripe\StripeClient($apiKey); } /** diff --git a/Module/ModuleManager.php b/Module/ModuleManager.php index ea9f47862..5274c9712 100755 --- a/Module/ModuleManager.php +++ b/Module/ModuleManager.php @@ -312,7 +312,7 @@ final class ModuleManager public function getInstalledModules(bool $useCache = true) : array { if (empty($this->installed) || !$useCache) { - $query = new Builder($this->app->dbPool->get('select')); + $query = new Builder($this->app->dbPool->get()); $sth = $query->select('module.module_path') ->from('module') ->where('module_status', '!=', ModuleStatus::AVAILABLE) @@ -348,7 +348,7 @@ final class ModuleManager */ public function loadInfo(string $module) : ?ModuleInfo { - $path = \realpath($oldPath = $this->modulePath . $module . '/info.json'); + $path = \realpath($this->modulePath . $module . '/info.json'); if ($path === false) { return null; }