1
0
mirror of https://github.com/php/php-src.git synced 2026-04-26 01:18:19 +02:00
This commit is contained in:
Ilia Alshanetsky
2003-02-03 21:24:48 +00:00
parent d92f023f4d
commit aa55dcf8f5
+4 -1
View File
@@ -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) {