Browse Source

improve field request condition

main
ghost 9 months ago
parent
commit
ae1bf94b82
  1. 4
      src/controller/room.php

4
src/controller/room.php

@ -212,9 +212,9 @@ class Room
} }
// Is raw field request // Is raw field request
if ($field && isset($record[$field])) if ($field)
{ {
return $record[$field]; return isset($record[$field]) ? $record[$field] : null;
} }
// Legacy usernames backport // Legacy usernames backport

Loading…
Cancel
Save