Code

Updated proposal stuff for user passwords (MyAccount)
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 1 Jul 2010 15:28:32 +0000 (15:28 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 1 Jul 2010 15:28:32 +0000 (15:28 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18910 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/personal/password/class_password.inc
gosa-core/plugins/personal/password/password.tpl

index 785075b3f67d21f5d15734eafb4ee3024171adc8..b15797a369db45c27f9cad6f990f6cb8e0def396 100644 (file)
@@ -46,9 +46,7 @@ class password extends plugin
     function refreshProposal()
     {
         $this->proposal = passwordMethod::getPasswordProposal($this->config);
-        if($this->proposal != ""){
-            $this->proposalEnabled  =TRUE;
-        }
+        $this->proposalEnabled = (!empty($this->proposal));
     }
 
 
index 7c928183025052f9b80a2a5fbad14ebbbcdde662..d5b28604922d633090f93cdbdb2a79dc7f12f7e8 100644 (file)
@@ -6,7 +6,7 @@
 
 <hr>
 
-{if !proposalEnabled}
+{if !$proposalEnabled}
   <table cellpadding=4 border=0 summary="{t}Password change dialog{/t}">
     <tr>
       <td><b><LABEL for="current_password">{t}Current password{/t}</LABEL></b></td>