Remove redundant assignment of APP_VER from APP_BUILD in app configuration
This commit is contained in:
@@ -52,7 +52,6 @@ if (count($_apps) > 0 && ($_apps['APP_CODE'] ?? "") !== $apps['APP_CODE']) {
|
|||||||
if (empty($session->get('WEB_APP'))) {
|
if (empty($session->get('WEB_APP'))) {
|
||||||
$row = $app->db()->fetchRow("SELECT * FROM app_config WHERE REG_ID = ?", [$apps['APP_CODE']]);
|
$row = $app->db()->fetchRow("SELECT * FROM app_config WHERE REG_ID = ?", [$apps['APP_CODE']]);
|
||||||
if ($row) $apps = array_merge($apps, $row->getData());
|
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['CREATOR_YEARS'] = ($apps['CREATOR_YEAR'] !== date('Y')) ? $apps['CREATOR_YEAR']." - ".date('Y') : $apps['CREATOR_YEAR'];
|
||||||
$apps = array_merge($apps, Register::reg_status($db, $apps));
|
$apps = array_merge($apps, Register::reg_status($db, $apps));
|
||||||
$session->set('WEB_APP', $apps);
|
$session->set('WEB_APP', $apps);
|
||||||
|
|||||||
Reference in New Issue
Block a user