From 04068a631e2eedd57cf761b019ae77549691cac6 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Tue, 3 Jun 2025 16:17:55 +0200 Subject: [PATCH] Allow null value in where_link() --- adminer/include/functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adminer/include/functions.inc.php b/adminer/include/functions.inc.php index 4a3dd50b..d4df33d0 100644 --- a/adminer/include/functions.inc.php +++ b/adminer/include/functions.inc.php @@ -291,7 +291,7 @@ function where_check(string $val, array $fields = array()): string { * @param int $i condition order * @param string $column column identifier */ -function where_link(int $i, string $column, string $value, string $operator = "="): string { +function where_link(int $i, string $column, ?string $value, string $operator = "="): string { return "&where%5B$i%5D%5Bcol%5D=" . urlencode($column) . "&where%5B$i%5D%5Bop%5D=" . urlencode(($value !== null ? $operator : "IS NULL")) . "&where%5B$i%5D%5Bval%5D=" . urlencode($value); }