X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Fclass_CopyPasteHandler.inc;h=afb2a117ec147840cf00c55b04a2e4a639b476e8;hb=f9e2a15ea3578c6c86efef30a0c8ebededefbb9e;hp=334bd988dc6e3c55e51552274d5b63439a1b3155;hpb=0f66c96ae61a0c1d00bd8b214f85ae57caa9d813;p=gosa.git 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 */