Skip to content

A free open source IT asset/license management system

Reverting back to or die

snipec8351ae01b18
diff --git a/app/Http/Controllers/Auth/AuthController.php b/app/Http/Controllers/Auth/AuthController.php
index 2a7de70633..49a8890afb 100644
--- a/app/Http/Controllers/Auth/AuthController.php
+++ b/app/Http/Controllers/Auth/AuthController.php
@@ -89,7 +89,7 @@ class AuthController extends Controller
}
// Connecting to LDAP
- $connection = ldap_connect($ldaphost) || die("Could not connect to {$ldaphost}");
+ $connection = ldap_connect($ldaphost) or die("Could not connect to {$ldaphost}");
// Needed for AD
ldap_set_option($connection, LDAP_OPT_REFERRALS, 0);
ldap_set_option($connection, LDAP_OPT_PROTOCOL_VERSION, $ldapversion);