From: Jakub Vrana Date: Tue, 3 Jun 2025 14:17:55 +0000 (+0200) Subject: Allow null value in where_link() X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=04068a631e2eedd57cf761b019ae77549691cac6;p=adminer.git Allow null value in where_link() --- 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); }