Code

Fix problem when Copy'n Paste is disabled. closes #148
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 3 Sep 2007 16:55:33 +0000 (16:55 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 3 Sep 2007 16:55:33 +0000 (16:55 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7202 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/applications/class_divListApplication.inc
plugins/admin/groups/class_divListGroup.inc
plugins/admin/mimetypes/class_divListMimeTypes.inc
plugins/admin/ogroups/class_divListOGroup.inc
plugins/admin/users/class_divListUsers.inc

index 2d93cfc71e721d86fd1f3140409fad079b5f43ec..36e3237eefd8a03bb86af353b39949bce9f43b85 100755 (executable)
@@ -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 = "<font color='#999999'>".$display."</font>";
       }
 
index ccce7cc9b5bbe8938e1ad3d8f251dcd625052f77..7f45b4137c50b615db0e9e73b7d741c6dd57e958 100644 (file)
@@ -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 = "<font color='#999999'>".$display."</font>";
       }
 
index 3a037d02d140a0a7c4acb44ca50f4e724b7d8b31..52f7ac8991267bd62b9b4b60c805a0908959dcca 100755 (executable)
@@ -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 = "<font color='#999999'>".$display."</font>";
       }
 
index c288e6137f0c39852d9dd4b1d2fc92df74bf49e2..6e2704e4023b7e5ff24ba90e011d4748ae323c3d 100755 (executable)
@@ -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 = "<font color='#999999'>".$display."</font>";
       }
 
index 2842145d4947e1fe8c031baa9c09d50412673cec..0d120bf92a91194bfdcbcd1e941e99327bf9063f 100644 (file)
@@ -265,7 +265,7 @@ class divListUsers extends MultiSelectWindow
       $UseImg = $usrimg2."&nbsp;".$posix."&nbsp;".$enviro."&nbsp;".$maila."&nbsp;".$fonac."&nbsp;".$faxac."&nbsp;".$samba."&nbsp;".$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 = "<font color='#999999'>".$display."</font>";
       }