From: hickert Date: Tue, 4 Oct 2005 05:40:17 +0000 (+0000) Subject: If there was a new server created, the check for goShareServer produced an error. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=32ef96d0ff6916ba65927146e0d014555d47d0c6;p=gosa.git If there was a new server created, the check for goShareServer produced an error. Because this->attrs['objectClass'] wasn't defined in this case. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1455 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/TODO b/TODO index 6beeeeccf..980102b59 100644 --- a/TODO +++ b/TODO @@ -43,8 +43,6 @@ Things to fix before 2.4: * Removing of servers produces error messages -* Creating servers produces PHP error messages - * Disabling error messages doesn't work * Phoneaccount -> defaults + auto fill diff --git a/plugins/admin/systems/class_servService.inc b/plugins/admin/systems/class_servService.inc index 2ee9fc90b..5b49f9037 100644 --- a/plugins/admin/systems/class_servService.inc +++ b/plugins/admin/systems/class_servService.inc @@ -71,7 +71,8 @@ class servservice extends plugin /* Always is account... */ $this->is_account= TRUE; - if(is_array($this->attrs['objectClass'])){ + /* Check if goShareServer is defined */ + if((isset($this->attrs['objectClass']))&&(is_array($this->attrs['objectClass']))){ if(in_array("goShareServer",$this->attrs['objectClass'])){ $this->goShareServer = true; }