From 51a9f75429cdfa2bff6f07e964863bff73c40c33 Mon Sep 17 00:00:00 2001 From: Yasen Pramatarov Date: Thu, 13 Nov 2025 19:47:53 +0200 Subject: [PATCH] Minor fixes --- app/pages/admin-tools.php | 2 +- app/pages/agents.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/pages/admin-tools.php b/app/pages/admin-tools.php index cebac0b..f159235 100644 --- a/app/pages/admin-tools.php +++ b/app/pages/admin-tools.php @@ -97,7 +97,7 @@ if ($action !== '') { $migrationsDir = __DIR__ . '/../../doc/database/migrations'; $runner = new \App\Core\MigrationRunner($db, $migrationsDir); $applied = $runner->applyPendingMigrations(); - + // Clean up any test migration files after applying if (!empty($applied)) { foreach ($applied as $migration) { diff --git a/app/pages/agents.php b/app/pages/agents.php index 72c6986..bc3e4e9 100644 --- a/app/pages/agents.php +++ b/app/pages/agents.php @@ -49,7 +49,7 @@ function isCacheExpired($agentId) { if ($_SERVER['REQUEST_METHOD'] === 'POST') { // Apply rate limiting for adding new contacts - require '../app/includes/rate_limit_middleware.php'; + require_once '../app/includes/rate_limit_middleware.php'; checkRateLimit($db, 'contact', $userId); // Validate agent ID for POST operations