From 397ea4e22f14d6720aa0c6f0d890e2162028146e Mon Sep 17 00:00:00 2001 From: flashwave Date: Sun, 19 Jan 2025 21:10:06 +0000 Subject: [PATCH] Apparently that returns int and not ?int... --- src/Users/Users.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Users/Users.php b/src/Users/Users.php index 02189ad..5c61a74 100644 --- a/src/Users/Users.php +++ b/src/Users/Users.php @@ -23,10 +23,10 @@ class Users { $stmt = $this->cache->get('INSERT INTO ser_users (user_id, user_name, user_colour, user_rank, user_permissions) VALUES (?, ?, ?, ?, 0) ON DUPLICATE KEY UPDATE user_name = ?, user_colour = ?, user_rank = ?'); $stmt->nextParameter($authInfo->getId()); $stmt->nextParameter($authInfo->getName()); - $stmt->nextParameter($authInfo->getColourRaw()); + $stmt->nextParameter($authInfo->hasColourRaw() ? $authInfo->getColourRaw() : null); $stmt->nextParameter($authInfo->getRank()); $stmt->nextParameter($authInfo->getName()); - $stmt->nextParameter($authInfo->getColourRaw()); + $stmt->nextParameter($authInfo->hasColourRaw() ? $authInfo->getColourRaw() : null); $stmt->nextParameter($authInfo->getRank()); $stmt->execute(); }