Commit d2b26903 authored by chealer's avatar chealer

LDAP: remove too early catch from r29739

Ref: http://article.gmane.org/gmane.comp.cms.tiki.cvs/64230
parent 5a3404f7
......@@ -471,13 +471,11 @@ class TikiLdapLib
*/
public function setOption ($name, $value = null)
{
try {
if (isset($this->options[$name])) {
$this->options[$name] = $value;
} else {
throw new Exception(sprintf("Undefined option: %s \n", $name), E_USER_WARNING);
}
} catch (Exception $e) { }
if (isset($this->options[$name])) {
$this->options[$name] = $value;
} else {
throw new Exception(sprintf("Undefined option: %s \n", $name), E_USER_WARNING);
}
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment