0
0
mirror of https://github.com/PHPMailer/PHPMailer.git synced 2024-09-20 18:03:04 +02:00

Update class.smtp.php

Set the value to 0 if the fields array is empty
This commit is contained in:
Daniel Hemmerich 2014-11-21 11:46:46 -05:00
parent 9553002973
commit 1ec37ad4c2

View File

@ -730,7 +730,7 @@ class SMTP
} else {
$name = array_shift($fields);
if ($name == 'SIZE') {
$fields = ($fields) ? $fields[0] : [];
$fields = ($fields) ? $fields[0] : 0;
}
}
$this->server_caps[$name] = ($fields ? $fields : true);