From 259865d262cdd4ff7d2502cf0ffb58e782bcd4f7 Mon Sep 17 00:00:00 2001 From: wangjianhua Date: Thu, 15 Sep 2022 14:28:18 +0800 Subject: [PATCH] * Format codes. --- module/zahost/control.php | 4 ++-- module/zahost/model.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/module/zahost/control.php b/module/zahost/control.php index 855345aefe..aec98327dc 100644 --- a/module/zahost/control.php +++ b/module/zahost/control.php @@ -161,10 +161,10 @@ class zahost extends control return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => inLink('browseTemplate', "id={$hostID}"))); } - $imageFiles = $this->zahost->imageFiles($host); + $imageFiles = $this->zahost->imageFiles($host); $imageFilesOptions = array_combine(array_column($imageFiles, 'macAddress'), array_column($imageFiles, 'name')); - $this->view->title = $this->lang->zahost->createTemplate; + $this->view->title = $this->lang->zahost->createTemplate; $this->view->imageFiles = $imageFilesOptions; $this->display(); } diff --git a/module/zahost/model.php b/module/zahost/model.php index 356288497e..746a171b76 100644 --- a/module/zahost/model.php +++ b/module/zahost/model.php @@ -137,7 +137,7 @@ class zahostModel extends model } } - $template->createdBy = $this->app->user->account; + $template->createdBy = $this->app->user->account; $template->createdDate = helper::now(); $this->dao->insert(TABLE_VMTEMPLATE)->data($template) ->autoCheck()->exec();