From 4f430ab3c025860b031ea5034a89d88118e98149 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 25 Jan 2007 09:57:44 +0000 Subject: [PATCH] Skip undefined index git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5620 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_CopyPasteHandler.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/class_CopyPasteHandler.inc b/include/class_CopyPasteHandler.inc index 334bd988d..afb2a117e 100644 --- a/include/class_CopyPasteHandler.inc +++ b/include/class_CopyPasteHandler.inc @@ -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 */ -- 2.30.2