From aa9dd62661ead0f8b39e69a4eef6f2fe3cc50e63 Mon Sep 17 00:00:00 2001 From: hahn <axel.hahn@iml.unibe.ch> Date: Fri, 30 Jul 2021 22:56:40 +0200 Subject: [PATCH] Fix projects class: accessing config var; typo in message --- public_html/deployment/classes/project.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public_html/deployment/classes/project.class.php b/public_html/deployment/classes/project.class.php index 62236b2e..2ab8c0a4 100644 --- a/public_html/deployment/classes/project.class.php +++ b/public_html/deployment/classes/project.class.php @@ -825,7 +825,7 @@ class project extends base { if ($this->_oVcs) { if (!method_exists($this->_oVcs, "cleanupCache")) { // the version control class does not have this method - $this->log(__FUNCTION__ . " soory, Methos cleanupCache does not exist in this VCS class."); + $this->log(__FUNCTION__ . " sorry, Method cleanupCache does not exist in this VCS class."); return ''; } return $this->_oVcs->cleanupCache($iAge); @@ -1455,10 +1455,10 @@ class project extends base { $this->_aConfig["id"] = $sId; - if ($this->_aConfig['projects']['json']['active']) { + if (isset($this->_aConfig['projects']['json']['active']) && $this->_aConfig['projects']['json']['active']) { $this->_aPrjConfig = json_decode(file_get_contents($this->_getConfigFile($sId)), true); } - if ($this->_aConfig['projects']['ldap']['active']) { + if (isset($this->_aConfig['projects']['ldap']['active']) && $this->_aConfig['projects']['ldap']['active']) { // TODO: read project after saving it - @see $this->saveConfig() $sQuery = '(&(objectclass=hieraSource)(documentIdentifier=' . $sId . '))'; $aResult = $this->_ldapProjectSearch($sQuery); -- GitLab