empty is only accepting vars

git-svn-id: file:///svn/phpbb/trunk@5867 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2006-04-30 12:50:43 +00:00
parent 28fe12956d
commit 9751cf71e9

View file

@ -915,7 +915,8 @@ class smtp_class
global $user; global $user;
$err_msg = ''; $err_msg = '';
$local_host = (empty(php_uname('n'))) ? 'localhost' : php_uname('n'); $local_host = php_uname('n');
$local_host = (empty($local_host)) ? 'localhost' : $local_host;
// If we are authenticating through pop-before-smtp, we // If we are authenticating through pop-before-smtp, we
// have to login ones before we get authenticated // have to login ones before we get authenticated