From 291837061ba13647f49cc32092fd0a3ec89d51ed Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 24 Aug 2021 16:31:13 +0200 Subject: [statistics] Support new json-format of hardware info from client We now try to use JSON output mode from any tool on the client to supply information, for easier parsability and hopefully, a more stable format. --- inc/database.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'inc/database.inc.php') diff --git a/inc/database.inc.php b/inc/database.inc.php index 09006f3e..48d8e3c6 100644 --- a/inc/database.inc.php +++ b/inc/database.inc.php @@ -375,9 +375,9 @@ class Database * @param string $aiKey name of the AUTO_INCREMENT column * @param array $uniqueValues assoc array containing columnName => value mapping * @param array $additionalValues assoc array containing columnName => value mapping - * @return int[] list of AUTO_INCREMENT values matching the list of $values + * @return int AUTO_INCREMENT value matching the given unique values entry */ - public static function insertIgnore($table, $aiKey, $uniqueValues, $additionalValues = false) + public static function insertIgnore($table, $aiKey, $uniqueValues, $additionalValues = false): int { // Sanity checks if (array_key_exists($aiKey, $uniqueValues)) { -- cgit v1.2.3-55-g7522