From 19026610578eea1e9c67a960028e527fb0eebb33 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 1 Jul 2022 18:51:55 +0200 Subject: [PATCH] Fix PHP warning in bin/updatedb.sh --- bin/updatedb.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/updatedb.sh b/bin/updatedb.sh index 018e72daa..133d4a4f9 100755 --- a/bin/updatedb.sh +++ b/bin/updatedb.sh @@ -36,4 +36,4 @@ if (empty($opts['package'])) { rcube::raise_error("Database schema package name not specified (--package).", false, true); } -rcmail_utils::db_update($opts['dir'], $opts['package'], $opts['version'], ['errors' => true]); +rcmail_utils::db_update($opts['dir'], $opts['package'], $opts['version'] ?? null, ['errors' => true]);