mirror of
https://github.com/php/php-src.git
synced 2026-04-26 01:18:19 +02:00
MFH
This commit is contained in:
+4
-1
@@ -2829,7 +2829,10 @@ PHP_FUNCTION(imap_mail_compose)
|
||||
}
|
||||
|
||||
zend_hash_internal_pointer_reset(Z_ARRVAL_PP(body));
|
||||
zend_hash_get_current_data(Z_ARRVAL_PP(body), (void **) &data);
|
||||
if (zend_hash_get_current_data(Z_ARRVAL_PP(body), (void **) &data) != SUCCESS) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "body parameter cannot be empty");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
zend_hash_get_current_key(Z_ARRVAL_PP(body), &key, &ind, 0); /* FIXME: is this necessary? we're not using key/ind */
|
||||
|
||||
if (Z_TYPE_PP(data) == IS_ARRAY) {
|
||||
|
||||
Reference in New Issue
Block a user