Code

Skip undefined index
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 25 Jan 2007 09:57:44 +0000 (09:57 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 25 Jan 2007 09:57:44 +0000 (09:57 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5620 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_CopyPasteHandler.inc

index 334bd988dc6e3c55e51552274d5b63439a1b3155..afb2a117ec147840cf00c55b04a2e4a639b476e8 100644 (file)
@@ -55,6 +55,12 @@ class CopyPasteHandler {
     $this->copyCurrent = true;
     $this->objectdn    = $obj->dn;
     $this->current = $emptyObj;
+
+    if(!isset($obj->by_object)){
+      trigger_error("No valid tab object specified for copy & paste.");
+      return;
+    }
+    
     foreach($obj->by_object as $name => $obj){
     
       /* Prepare every single class, to be copied  */