From: hickert Date: Thu, 25 Jan 2007 09:57:44 +0000 (+0000) Subject: Skip undefined index X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4f430ab3c025860b031ea5034a89d88118e98149;p=gosa.git Skip undefined index git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5620 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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 */