From: hickert Date: Fri, 9 May 2008 11:42:18 +0000 (+0000) Subject: Fixed undefined object error if copy & paste is deactivated X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=968b40f63c801e6d92fcd0f48b93c3c81602dd75;p=gosa.git 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 --- 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;'");