index cf0370712e984f5aea7eb22cce501a60d9e06a5e..12454831bd3a0b71cd3cd43df001084f8ba2b80a 100644 (file)
$reset = FALSE;
foreach($this->attributes as $attr){
if(isset($_POST[$attr])){
- if(in_array($attr,array("base","connection")) && $this->$attr != get_post($attr)){
+ if(in_array_strict($attr,array("base","connection")) && $this->$attr != get_post($attr)){
$reset = TRUE;
}
$this->$attr = get_post($attr);
if($reset){
$this->parent->disable_steps_from(($this->parent->step_name_to_id(get_class($this))) +1);
$attr = @LDAP::get_naming_contexts($this->connection);
- if(is_array($attr) && !in_array(get_post("base"),$attr)){
+ if(is_array($attr) && !in_array_strict(get_post("base"),$attr)){
if(isset($attr[0])){
$this->base = $attr[0];
}