Code

If there was a new server created, the check for goShareServer produced an error.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 4 Oct 2005 05:40:17 +0000 (05:40 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 4 Oct 2005 05:40:17 +0000 (05:40 +0000)
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

TODO
plugins/admin/systems/class_servService.inc

diff --git a/TODO b/TODO
index 6beeeeccfc44e4bd5b64068ce47799a4c35b8fe1..980102b594842ffe215e6d55fb18ba50514027b2 100644 (file)
--- 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
index 2ee9fc90b1c99d0822027d216ca59339839ef690..5b49f90372bafe1929afe3392b681e1491150acc 100644 (file)
@@ -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;    
       }