Remove redundant assignment of APP_VER from APP_BUILD in app configuration

This commit is contained in:
2026-10-31 09:21:06 +07:00
parent 872a42489f
commit f901042cf5
-1
View File
@@ -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);