* Fix php error of install app.

This commit is contained in:
zhaoke
2023-10-10 09:10:09 +08:00
parent 41baac9a49
commit ea576db013
+1 -1
View File
@@ -930,7 +930,7 @@ class InstanceModel extends model
{
$createdBy = $this->app->user->account;
if(empty($k8name)) $k8name = "{$app->chart}-" . date('YmdHis'); //name rule: chartName-userAccount-YmdHis;
if(IN_INSTALL && empty($this->app->user->account)) $createdBy = trim($this->app->company->admins, ','); //Set createdBy if in login progress;
if(defined('IN_INSTALL') && IN_INSTALL && empty($this->app->user->account)) $createdBy = trim($this->app->company->admins, ','); //Set createdBy if in login progress;
$instanceData = new stdclass;
$instanceData->appId = $app->id;