diff --git a/sites/+components/page-head.php b/sites/+components/page-head.php index 4b78f97..b21795c 100644 --- a/sites/+components/page-head.php +++ b/sites/+components/page-head.php @@ -4,7 +4,7 @@ \ No newline at end of file diff --git a/sites/+components/tbl_communities.php b/sites/+components/tbl_communities.php index 3f33948..15fe638 100644 --- a/sites/+components/tbl_communities.php +++ b/sites/+components/tbl_communities.php @@ -53,10 +53,11 @@ $hostname = explode("/", $hostname)[0]; // Escape external input. + // Ternaries prevent passing null-equal strings, which produce warnings. $id = htmlspecialchars($id); - $language = htmlspecialchars($room->language); + $language = $room->language ? htmlspecialchars($room->language) : ""; $name = htmlspecialchars($room->name); - $desc = htmlspecialchars($room->description); + $desc = $room->description ? htmlspecialchars($room->description) : ""; $users = htmlspecialchars($room->active_users); $preview_link = htmlspecialchars($room->preview_link); $join_link = htmlspecialchars($room->join_link);