Code

Only display pwd hash reset if a hash is set
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 1 Jun 2006 07:26:54 +0000 (07:26 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 1 Jun 2006 07:26:54 +0000 (07:26 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3599 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/environment/class_environment.inc

index 25291da7abd30973d034e926159afafa9620c601..60eb816b96198d73dbab11d420efcc545ccc026a 100644 (file)
@@ -579,8 +579,12 @@ class environment extends plugin
     
     foreach($tmp as $key => $value){
     
-      $img = "<input type='image' name='gotoShareResetPwd_".$key." 'src='images/list_reset_password.png' alt='"._("Reset password hash")."' 
+      $img = "";
+
+      if($this->gotoShares[$key]['PwdHash'] != ""){
+      $img.= "<input type='image' name='gotoShareResetPwd_".$key." 'src='images/list_reset_password.png' alt='"._("Reset password hash")."' 
                 title='"._("Reset password hash")."'>";
+      }
       $img.= "&nbsp;";
       $img.= "<input type='image' name='gotoShareDel_".$key." 'src='images/edittrash.png' alt='"._("Delete")."' 
                 title='"._("Delete share entry")."'>";