Skip to content

Commit 6cbe3b5

Browse files
committed
Tweak one more place
No behavior difference here, but let's be consistent.
1 parent 68302fe commit 6cbe3b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/filter/filter.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -672,9 +672,9 @@ PHP_FUNCTION(filter_input)
672672
if (!input || (tmp = zend_hash_find(Z_ARRVAL_P(input), var)) == NULL) {
673673
zend_long filter_flags = 0;
674674
zval *option, *opt, *def;
675-
if (filter_args_long) {
675+
if (!filter_args_ht) {
676676
filter_flags = filter_args_long;
677-
} else if (filter_args_ht) {
677+
} else {
678678
if ((option = zend_hash_str_find(filter_args_ht, "flags", sizeof("flags") - 1)) != NULL) {
679679
filter_flags = zval_get_long(option);
680680
}

0 commit comments

Comments
 (0)