From 0f137dbe734399e95b1776cb090cbf86a7c6ed10 Mon Sep 17 00:00:00 2001 From: igor Date: Mon, 9 Feb 2026 08:04:37 +0100 Subject: [PATCH] fixed nowexists keys in configuration --- bin/dbmodel-files | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/dbmodel-files b/bin/dbmodel-files index 9d13932..6df4de1 100644 --- a/bin/dbmodel-files +++ b/bin/dbmodel-files @@ -60,8 +60,8 @@ if (!$loaded) { } $protocol = (!empty($_SERVER[\'HTTPS\']) && $_SERVER[\'HTTPS\'] !== \'off\') ? "https://" : "http://"; -$host = $_SERVER[\'HTTP_HOST\']; -$uri = $_SERVER[\'REQUEST_URI\']; // obsahuje aj query string +$host = $_SERVER[\'HTTP_HOST\'] ?? \'localhost\'; +$uri = $_SERVER[\'REQUEST_URI\'] ?? \'\'; // obsahuje aj query string define(\'URL_PREFIX\', $protocol.$host.str_replace(basename($_SERVER[\'SCRIPT_NAME\']), \'\', $_SERVER[\'SCRIPT_NAME\'])); ');