Code

Fixed undefined object error if copy & paste is deactivated
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 9 May 2008 11:42:18 +0000 (11:42 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 9 May 2008 11:42:18 +0000 (11:42 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@10863 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_divListFai.inc

index 2df2e13030d2f3ccde6ee0d1a2f7920640c66794..136f21d037e623d0f50cef41316cfb4b64506e12 100644 (file)
@@ -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 = "<font color='#999999'>".$display."</font>";
+       if(is_object($this->parent->CopyPasteHandler)){
+         if($this->parent->CopyPasteHandler->cutCurrent && $value['dn'] == $this->parent->CopyPasteHandler->objectdn){
+           $display = "<font color='#999999'>".$display."</font>";
+         }
        }
 
        $field1 = array("string" => $img , "attach" => "style='text-align:center;width:20px;'");