From be3db65d5f2eb9c41b73d98821f7c733e8b02cb2 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 7 Dec 2023 11:35:17 +0100 Subject: [PATCH] 3.1.9 Fix a code mistake --- includes/config/include.php | 2 +- sources/items.queries.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/config/include.php b/includes/config/include.php index e8d6eaab8..f1ae19510 100755 --- a/includes/config/include.php +++ b/includes/config/include.php @@ -17,7 +17,7 @@ */ define('TP_VERSION', '3.1.0'); define("UPGRADE_MIN_DATE", "1697990713"); -define('TP_VERSION_MINOR', '10'); +define('TP_VERSION_MINOR', '11'); define('TP_TOOL_NAME', 'Teampass'); define('TP_ONE_DAY_SECONDS', 86400); define('TP_ONE_WEEK_SECONDS', 604800); diff --git a/sources/items.queries.php b/sources/items.queries.php index 1b2a2f1fb..62dec0f76 100755 --- a/sources/items.queries.php +++ b/sources/items.queries.php @@ -3271,7 +3271,7 @@ $SETTINGS['cpassman_dir'] ); - if (empty($inputData['itemId']) === true && (empty($inputData['itemKey']) === true || undefined($inputData['itemKey']) === true)) { + if (empty($inputData['itemId']) === true && (empty($inputData['itemKey']) === true || is_null($inputData['itemKey']) === true)) { echo (string) prepareExchangedData( array( 'error' => true,