Renderer::setActiveTemplateEngine('smarty3');
- if (!empty($a->argv[0]) && $a->argv[0] . defaults($a->argv, 1, '') === "profile".$a->user['nickname'] || $a->argv[0] === "network" && local_user()) {
+ if (!empty($a->argv[0]) && ($a->argv[0] . ($a->argv[1] ?? '')) === ('profile' . $a->user['nickname']) || $a->argv[0] === 'network' && local_user()) {
vier_community_info();
$a->page['htmlhead'] .= "<link rel='stylesheet' type='text/css' href='view/theme/vier/wide.css' media='screen and (min-width: 1300px)'/>\n";
//Community_Pages at right_aside
if ($show_pages && local_user()) {
- $cid = defaults($_GET, 'cid', null);
+ $cid = $_GET['cid'] ?? null;
//sort by last updated item
$lastitem = true;