From f901042cf5fb01a897b786466478736a450b62f4 Mon Sep 17 00:00:00 2001 From: Siau Pheng Date: Sat, 31 Oct 2026 09:21:06 +0700 Subject: [PATCH] Remove redundant assignment of APP_VER from APP_BUILD in app configuration --- app/config/app.php.example | 1 - 1 file changed, 1 deletion(-) diff --git a/app/config/app.php.example b/app/config/app.php.example index 1e15b9c..c28803a 100644 --- a/app/config/app.php.example +++ b/app/config/app.php.example @@ -52,7 +52,6 @@ if (count($_apps) > 0 && ($_apps['APP_CODE'] ?? "") !== $apps['APP_CODE']) { if (empty($session->get('WEB_APP'))) { $row = $app->db()->fetchRow("SELECT * FROM app_config WHERE REG_ID = ?", [$apps['APP_CODE']]); if ($row) $apps = array_merge($apps, $row->getData()); - if ($apps['APP_BUILD'] ?? "" !== "") $apps['APP_VER'] = $apps['APP_BUILD']; $apps['CREATOR_YEARS'] = ($apps['CREATOR_YEAR'] !== date('Y')) ? $apps['CREATOR_YEAR']." - ".date('Y') : $apps['CREATOR_YEAR']; $apps = array_merge($apps, Register::reg_status($db, $apps)); $session->set('WEB_APP', $apps);