diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2009-06-23 12:43:10 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2009-06-23 12:43:10 +0000 |
| commit | 4482bfd2e468ac40a20fce24cc57901ddd4c98f4 (patch) | |
| tree | 9cb376d516785dff085844336113ad258fe93fce /ext/imap/php_imap.c | |
| parent | 025891e50f42f1e67e6b59fec53a330200ef324f (diff) | |
| download | php-git-4482bfd2e468ac40a20fce24cc57901ddd4c98f4.tar.gz | |
Fixed build
Diffstat (limited to 'ext/imap/php_imap.c')
| -rw-r--r-- | ext/imap/php_imap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index 24111e1399..a5b2dc9068 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -2670,7 +2670,7 @@ PHP_FUNCTION(imap_sort) slst = mail_sort(imap_le_struct->imap_stream, (myargc == 6 ? Z_STRVAL_PP(charset) : NIL), spg, mypgm, (myargc >= 4 ? Z_LVAL_PP(flags) : NIL)); - if (spg && !(flags & SE_FREE)) { + if (spg && myargc >= 4 && !(Z_LVAL_PP(flags) & SE_FREE)) { mail_free_searchpgm(&spg); } |
