Skip to content

Commit

Permalink
Update class.smtp.php
Browse files Browse the repository at this point in the history
Not all SMTP servers will provide a value for SIZE. This commit checks to be certain there is an element in the array before attempting to access it.
  • Loading branch information
hemmerich committed Nov 21, 2014
1 parent 70930a6 commit 9553002
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class.smtp.php
Expand Up @@ -730,7 +730,7 @@ protected function parseHelloFields($type)
} else {
$name = array_shift($fields);
if ($name == 'SIZE') {
$fields = $fields[0];
$fields = ($fields) ? $fields[0] : [];
}
}
$this->server_caps[$name] = ($fields ? $fields : true);
Expand Down

0 comments on commit 9553002

Please sign in to comment.