@@ -886,7 +886,9 @@ discard block |
||
886 | 886 | |
887 | 887 | // Attempt to set attributes |
888 | 888 | $result = @ldap_mod_replace($this->ldap, $dn, $attributes); |
889 | - if ($result === false) throw $this->makeException('Library - LDAP setAttributes(): Failed to set attributes for DN \''.$dn.'\'. Bind necessary?'); |
|
889 | + if ($result === false) { |
|
890 | + throw $this->makeException('Library - LDAP setAttributes(): Failed to set attributes for DN \''.$dn.'\'. Bind necessary?'); |
|
891 | + } |
|
890 | 892 | |
891 | 893 | return $result; |
892 | 894 | } |
@@ -911,7 +913,9 @@ discard block |
||
911 | 913 | |
912 | 914 | // Attempt to add attributes |
913 | 915 | $result = @ldap_mod_add($this->ldap, $dn, $attributes); |
914 | - if ($result === false) throw $this->makeException('Library - LDAP addAttributes(): Failed to set attributes for DN \''.$dn.'\'. Bind necessary?'); |
|
916 | + if ($result === false) { |
|
917 | + throw $this->makeException('Library - LDAP addAttributes(): Failed to set attributes for DN \''.$dn.'\'. Bind necessary?'); |
|
918 | + } |
|
915 | 919 | |
916 | 920 | return $result; |
917 | 921 | } |