diff --git a/public_html/deployment/classes/project.class.php b/public_html/deployment/classes/project.class.php
index 62236b2ef7b5dbe1cdc2b84819347937f71a6612..2ab8c0a461acd983bd681c65b2d42193623e5ebb 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);