Skip to content

Commit 4d94595

Browse files
committed
2 parents e7be677 + abac889 commit 4d94595

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Adapter.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,10 @@ public function removeFilteredPolicy($sec, $ptype, $fieldIndex, ...$fieldValues)
110110
$condition[] = 'ptype = :ptype';
111111
foreach (range(0, 5) as $value) {
112112
if ($fieldIndex <= $value && $value < $fieldIndex + count($fieldValues)) {
113-
$where['v'.strval($value)] = $fieldValues[$value - $fieldIndex];
114-
$condition[] = 'v'.strval($value).' = :'.'v'.strval($value);
113+
if ('' != $fieldValues[$value - $fieldIndex]) {
114+
$where['v'.strval($value)] = $fieldValues[$value - $fieldIndex];
115+
$condition[] = 'v'.strval($value).' = :'.'v'.strval($value);
116+
}
115117
}
116118
}
117119

0 commit comments

Comments
 (0)