From 968b40f63c801e6d92fcd0f48b93c3c81602dd75 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 9 May 2008 11:42:18 +0000 Subject: [PATCH] Fixed undefined object error if copy & paste is deactivated git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@10863 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_divListFai.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/admin/fai/class_divListFai.inc b/plugins/admin/fai/class_divListFai.inc index 2df2e1303..136f21d03 100644 --- a/plugins/admin/fai/class_divListFai.inc +++ b/plugins/admin/fai/class_divListFai.inc @@ -242,8 +242,10 @@ class divListFai extends MultiSelectWindow /* Cutted objects should be displayed in light grey */ $display = $value['cn'].$desc; - if($this->parent->CopyPasteHandler->cutCurrent && $value['dn'] == $this->parent->CopyPasteHandler->objectdn){ - $display = "".$display.""; + if(is_object($this->parent->CopyPasteHandler)){ + if($this->parent->CopyPasteHandler->cutCurrent && $value['dn'] == $this->parent->CopyPasteHandler->objectdn){ + $display = "".$display.""; + } } $field1 = array("string" => $img , "attach" => "style='text-align:center;width:20px;'"); -- 2.30.2