<?php
if (!function_exists('ec_upa_h')) {
    function ec_upa_h($v) {
        return htmlspecialchars((string)$v, ENT_QUOTES, 'UTF-8');
    }
}

$userRow = $userRow ?? $u ?? $row ?? $reviewer ?? [];
$uid = (int)($userRow['user_id'] ?? $userRow['id'] ?? $userRow['reviewer_id'] ?? 0);
?>

<?php if ($uid > 0): ?>
    <a class="btn btn-sm btn-outline-primary rounded-pill" href="/easychair/admin/user-profile?id=<?= $uid ?>">
        <i class="fa fa-user-graduate"></i>
        Profile
    </a>
<?php endif; ?>
