]> granicus.if.org Git - php/commitdiff
Fixed a typo in the check
authorIlia Alshanetsky <iliaa@php.net>
Tue, 17 Jun 2003 13:59:44 +0000 (13:59 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 17 Jun 2003 13:59:44 +0000 (13:59 +0000)
ext/imap/php_imap.c

index 26faae27c46532e669895d73ea1ef894cf79e66a..b540c3a1dcc2ba1010d9dc6110533a4802258041 100644 (file)
@@ -2749,13 +2749,13 @@ PHP_FUNCTION(imap_fetch_overview)
                                if (env->subject) {
                                        add_property_string(myoverview, "subject", env->subject, 1);
                                }
-                               if (env->from && _php_imap_address_size(env->from) >= MAILTMPLEN) {
+                               if (env->from && _php_imap_address_size(env->from) < MAILTMPLEN) {
                                        env->from->next=NULL;
                                        address[0] = '\0';
                                        rfc822_write_address(address, env->from);
                                        add_property_string(myoverview, "from", address, 1);
                                }
-                               if (env->to && _php_imap_address_size(env->from) >= MAILTMPLEN) {
+                               if (env->to && _php_imap_address_size(env->from) < MAILTMPLEN) {
                                        env->to->next = NULL;
                                        address[0] = '\0';
                                        rfc822_write_address(address, env->to);