diff options
author | Simon Rettberg | 2017-12-01 18:58:16 +0100 |
---|---|---|
committer | Simon Rettberg | 2017-12-01 18:58:16 +0100 |
commit | 4e39862628cf5b59f5c8d91f11070edd90b4a818 (patch) | |
tree | 3950c3900f3b48660c806977631c81f07d793101 /modules-available/sysconfig | |
parent | [roomplanner] Sort already placed machines to the bottom (diff) | |
download | slx-admin-4e39862628cf5b59f5c8d91f11070edd90b4a818.tar.gz slx-admin-4e39862628cf5b59f5c8d91f11070edd90b4a818.tar.xz slx-admin-4e39862628cf5b59f5c8d91f11070edd90b4a818.zip |
Fix several PHP notices about undefined indexes, variables, not-arrays
Diffstat (limited to 'modules-available/sysconfig')
-rw-r--r-- | modules-available/sysconfig/addmodule_ldapauth.inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules-available/sysconfig/addmodule_ldapauth.inc.php b/modules-available/sysconfig/addmodule_ldapauth.inc.php index 07c494cc..62120b48 100644 --- a/modules-available/sysconfig/addmodule_ldapauth.inc.php +++ b/modules-available/sysconfig/addmodule_ldapauth.inc.php @@ -16,11 +16,11 @@ class LdapAuth_Start extends AddModule_Base $data['title'] = $this->edit->title(); $data['edit'] = $this->edit->id(); } - if ($data['fixnumeric'] === false) { + if (!isset($data['fixnumeric']) || $data['fixnumeric'] === false) { $data['fixnumeric'] = 's'; } postToArray($data, $LDAPAUTH_COMMON_FIELDS, true); - if (preg_match('/^(.*)\:(636|389)$/', $data['server'], $out)) { + if (isset($data['server']) && preg_match('/^(.*)\:(636|389)$/', $data['server'], $out)) { $data['server'] = $out[1]; } $data['step'] = 'LdapAuth_CheckConnection'; |