Code

Added robustness to tabs::save()
[gosa.git] / gosa-core / include / functions.inc
index e8b500cb176921af3a4326f32a30c3ccb86ed351..85a2eb328e669e85f8a63f9179ad6249c62a4f90 100644 (file)
@@ -2525,7 +2525,9 @@ function change_password ($dn, $password, $mode=0, $hash= "")
   } else {
 
     /* Run backend method for change/create */
-    $test->set_password($password);
+    if(!$test->set_password($password)){
+      return(FALSE);
+    }
 
     /* Find postmodify entries for this class */
     $command= $config->search("password", "POSTMODIFY",array('menu'));
@@ -2544,6 +2546,7 @@ function change_password ($dn, $password, $mode=0, $hash= "")
       }
     }
   }
+  return(TRUE);
 }