mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:05:16 +01:00
fix some scrutinizer "bugs"
This commit is contained in:
parent
903b14f45d
commit
8a9b6591a8
@ -227,7 +227,7 @@ class Ldap
|
|||||||
$host = parse_url($host,PHP_URL_HOST);
|
$host = parse_url($host,PHP_URL_HOST);
|
||||||
}
|
}
|
||||||
// connect to ldap server (never fails, as connection happens in bind!)
|
// connect to ldap server (never fails, as connection happens in bind!)
|
||||||
if(!($this->ds = !empty($port) ? ldap_connect($host, $port) : ldap_connect($host)))
|
if(!$host || !($this->ds = !empty($port) ? ldap_connect($host, $port) : ldap_connect($host)))
|
||||||
{
|
{
|
||||||
return False;
|
return False;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user