From ee64f917f225eb800adb7ca6ca03f3e10784f54b Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 3 Sep 2007 16:55:33 +0000 Subject: [PATCH] Fix problem when Copy'n Paste is disabled. closes #148 git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7202 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/applications/class_divListApplication.inc | 2 +- plugins/admin/groups/class_divListGroup.inc | 2 +- plugins/admin/mimetypes/class_divListMimeTypes.inc | 2 +- plugins/admin/ogroups/class_divListOGroup.inc | 2 +- plugins/admin/users/class_divListUsers.inc | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/admin/applications/class_divListApplication.inc b/plugins/admin/applications/class_divListApplication.inc index 2d93cfc71..36e3237ee 100755 --- a/plugins/admin/applications/class_divListApplication.inc +++ b/plugins/admin/applications/class_divListApplication.inc @@ -175,7 +175,7 @@ class divListApplication extends MultiSelectWindow /* Cutted objects should be displayed in light grey */ $display = $val['cn']['0'].$desc; - if($this->parent->CopyPasteHandler->cutCurrent && $val['dn'] == $this->parent->CopyPasteHandler->objectdn){ + if(isset($this->parent->CopyPasteHandler) && $this->parent->CopyPasteHandler->cutCurrent && $val['dn'] == $this->parent->CopyPasteHandler->objectdn){ $display = "".$display.""; } diff --git a/plugins/admin/groups/class_divListGroup.inc b/plugins/admin/groups/class_divListGroup.inc index ccce7cc9b..7f45b4137 100644 --- a/plugins/admin/groups/class_divListGroup.inc +++ b/plugins/admin/groups/class_divListGroup.inc @@ -190,7 +190,7 @@ class divListGroup extends MultiSelectWindow /* Cutted objects should be displayed in light grey */ $display = $val['cn']['0'].$desc; - if($this->parent->CopyPasteHandler->cutCurrent && $val['dn'] == $this->parent->CopyPasteHandler->objectdn){ + if(isset($this->parent->CopyPasteHandler) && $this->parent->CopyPasteHandler->cutCurrent && $val['dn'] == $this->parent->CopyPasteHandler->objectdn){ $display = "".$display.""; } diff --git a/plugins/admin/mimetypes/class_divListMimeTypes.inc b/plugins/admin/mimetypes/class_divListMimeTypes.inc index 3a037d02d..52f7ac899 100755 --- a/plugins/admin/mimetypes/class_divListMimeTypes.inc +++ b/plugins/admin/mimetypes/class_divListMimeTypes.inc @@ -179,7 +179,7 @@ class divListMimeTypes extends MultiSelectWindow /* Cutted objects should be displayed in light grey */ $display = $val['cn'][0].$desc; - if($this->parent->CopyPasteHandler->cutCurrent && $val['dn'] == $this->parent->CopyPasteHandler->objectdn){ + if(isset($this->parent->CopyPasteHandler) && $this->parent->CopyPasteHandler->cutCurrent && $val['dn'] == $this->parent->CopyPasteHandler->objectdn){ $display = "".$display.""; } diff --git a/plugins/admin/ogroups/class_divListOGroup.inc b/plugins/admin/ogroups/class_divListOGroup.inc index c288e6137..6e2704e40 100755 --- a/plugins/admin/ogroups/class_divListOGroup.inc +++ b/plugins/admin/ogroups/class_divListOGroup.inc @@ -160,7 +160,7 @@ class divListOGroup extends MultiSelectWindow /* Cutted objects should be displayed in light grey */ $display = $val['cn'][0].$desc; - if($this->parent->CopyPasteHandler->cutCurrent && $val['dn'] == $this->parent->CopyPasteHandler->objectdn){ + if(isset($this->parent->CopyPasteHandler) && $this->parent->CopyPasteHandler->cutCurrent && $val['dn'] == $this->parent->CopyPasteHandler->objectdn){ $display = "".$display.""; } diff --git a/plugins/admin/users/class_divListUsers.inc b/plugins/admin/users/class_divListUsers.inc index 2842145d4..0d120bf92 100644 --- a/plugins/admin/users/class_divListUsers.inc +++ b/plugins/admin/users/class_divListUsers.inc @@ -265,7 +265,7 @@ class divListUsers extends MultiSelectWindow $UseImg = $usrimg2." ".$posix." ".$enviro." ".$maila." ".$fonac." ".$faxac." ".$samba." ".$netatalk; /* Cutted objects should be displayed in light grey */ - if($this->parent->CopyPasteHandler->cutCurrent && $val['dn'] == $this->parent->CopyPasteHandler->objectdn){ + if(isset($this->parent->CopyPasteHandler) && $this->parent->CopyPasteHandler->cutCurrent && $val['dn'] == $this->parent->CopyPasteHandler->objectdn){ $display = "".$display.""; } -- 2.30.2