diff --git a/phpgwapi/inc/class.network.inc.php b/phpgwapi/inc/class.network.inc.php index b9fa8e541f..558dfbef36 100644 --- a/phpgwapi/inc/class.network.inc.php +++ b/phpgwapi/inc/class.network.inc.php @@ -145,7 +145,7 @@ function msg2socket($str,$expected_response,&$response) { - if(!$this->socket && substr($expected_response,1,1) == '+') + if(!$this->socket) { return $this->set_error('521','socket does not exist', 'The required socked does not exist. The settings for your mail server may be wrong.');