Skip to content

Commit

Permalink
Update class.smtp.php
Browse files Browse the repository at this point in the history
Set the value to 0 if the fields array is empty
  • Loading branch information
hemmerich committed Nov 21, 2014
1 parent 9553002 commit 1ec37ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class.smtp.php
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ protected function parseHelloFields($type)
} else {
$name = array_shift($fields);
if ($name == 'SIZE') {
$fields = ($fields) ? $fields[0] : [];
$fields = ($fields) ? $fields[0] : 0;
}
}
$this->server_caps[$name] = ($fields ? $fields : true);
Expand Down

0 comments on commit 1ec37ad

Please sign in to comment.