From ae1bf94b8287d45557b2592aedabae2330eb4024 Mon Sep 17 00:00:00 2001 From: ghost Date: Thu, 25 Jan 2024 21:24:11 +0200 Subject: [PATCH] improve field request condition --- src/controller/room.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controller/room.php b/src/controller/room.php index c73b25e..557e5d4 100644 --- a/src/controller/room.php +++ b/src/controller/room.php @@ -212,9 +212,9 @@ class Room } // Is raw field request - if ($field && isset($record[$field])) + if ($field) { - return $record[$field]; + return isset($record[$field]) ? $record[$field] : null; } // Legacy usernames backport