Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Commit e481017

Browse files
author
Flo Faber
committed
Fixed #20
1 parent 702aecb commit e481017

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Filter.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,12 @@ public function __construct(string $tag, string $operator, string $value)
4646
*/
4747
public function and(string $tag, string $operator, string $value): Filter
4848
{
49-
$value = Utils::escape_params([ $value ], MPD_ESCAPE_DOUBLE_QUOTES);
49+
if($value === ""){
50+
$value = "''";
51+
}else{
52+
$value = Utils::escape_params([ $value ], MPD_ESCAPE_DOUBLE_QUOTES);
53+
}
54+
5055
$this->tags[] = $tag;
5156
$this->operators[] = $operator;
5257
$this->values[] = $value;

0 commit comments

Comments
 (0)