From b9c37030b60f9846dd3d2ee422c195dc3af458ac Mon Sep 17 00:00:00 2001 From: Myron Blair Date: Wed, 10 Jun 2026 05:45:33 +0000 Subject: [PATCH] Fix terminate 500: require DatabaseManager before calling drop MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit AccountManager::terminate() called DatabaseManager::drop() without requiring the class first — fatal class not found error on every account termination. Co-Authored-By: Claude Sonnet 4.6 --- panel/lib/AccountManager.php | 1 + 1 file changed, 1 insertion(+) diff --git a/panel/lib/AccountManager.php b/panel/lib/AccountManager.php index b20f0de..1ea2480 100644 --- a/panel/lib/AccountManager.php +++ b/panel/lib/AccountManager.php @@ -87,6 +87,7 @@ class AccountManager { } public static function terminate(int $acctId): void { + require_once NOVACPX_LIB . '/DatabaseManager.php'; $db = DB::getInstance(); $acct = $db->fetchOne("SELECT * FROM accounts WHERE id = ?", [$acctId]); if (!$acct) throw new RuntimeException("Account not found");