From 9cb80f3705f53470d87a351985a4d9586c8658eb Mon Sep 17 00:00:00 2001 From: Johan Cwiklinski Date: Tue, 31 Oct 2023 09:08:17 +0100 Subject: [PATCH] Extend conf, new fix --- ajax/dropdownQuantity.php | 3 +++ phpstan.neon | 3 +++ 2 files changed, 6 insertions(+) diff --git a/ajax/dropdownQuantity.php b/ajax/dropdownQuantity.php index f36588f..2b6997c 100644 --- a/ajax/dropdownQuantity.php +++ b/ajax/dropdownQuantity.php @@ -35,6 +35,9 @@ Session::checkLoginUser(); +/** @var DBmysql */ +global $DB; + if (isset($_POST["entity"])) { $entity_query = [ 'SELECT' => ['overconsumption_allowed', 'quantity'], diff --git a/phpstan.neon b/phpstan.neon index a9cb812..0362363 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -7,6 +7,9 @@ parameters: - setup.php paths: - inc + - front + - ajax + - hook.php scanDirectories: - ../../inc - ../../src